@corpsmap/corpsmap 4.1.6 → 4.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12841,7 +12841,7 @@ const config$1 = {
12841
12841
  path: "depricated"
12842
12842
  }
12843
12843
  ]
12844
- }, version = "4.1.6", pkg = {
12844
+ }, version = "4.1.9", pkg = {
12845
12845
  version
12846
12846
  };
12847
12847
  console.log("------ RUNNING CORPSMAP V." + pkg.version + " ------");
@@ -23089,13 +23089,22 @@ class ChangeLogModal extends React__default.Component {
23089
23089
  const { doModalClose: t } = this.props;
23090
23090
  t();
23091
23091
  }
23092
+ // formatDate(oldDate) {
23093
+ // let newDate = new Date(oldDate);
23094
+ // newDate = newDate.toLocaleDateString("default", {
23095
+ // month: "long",
23096
+ // day: "numeric",
23097
+ // year: "numeric",
23098
+ // });
23099
+ // return newDate;
23100
+ // }
23092
23101
  formatDate(t) {
23093
- let r = new Date(t);
23094
- return r = r.toLocaleDateString("default", {
23102
+ let r = new Date(t), a = r.getTimezoneOffset() * 6e4, o = new Date(r.getTime() + a);
23103
+ return o = o.toLocaleDateString("default", {
23095
23104
  month: "long",
23096
23105
  day: "numeric",
23097
23106
  year: "numeric"
23098
- }), r;
23107
+ }), o;
23099
23108
  }
23100
23109
  render() {
23101
23110
  const {