@vizzly/dashboard 0.14.4-dev-9d703b952fc4f8757e0aae09b4325b2ed3521f45 → 0.14.4-dev-bba43aecbb9d5b65a950ef259163441af1041848

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.
@@ -12663,14 +12663,21 @@ var currentTimezone = function currentTimezone() {
12663
12663
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
12664
12664
  };
12665
12665
  var EN_GB_LOCALE = 'en-GB';
12666
- var runLocaleDateFormat = function runLocaleDateFormat(date, timezone, options) {
12666
+ var formatShortDateWithoutDay = function formatShortDateWithoutDay(date, timezone) {
12667
12667
  if (!date) return '';
12668
- var dateString = date.toLocaleDateString(EN_GB_LOCALE, options);
12668
+ var dateString = date.toLocaleDateString(EN_GB_LOCALE, SHORT_WITHOUT_DAY_DATE_FORMAT);
12669
12669
  var showTimezone = timezone && timezone != currentTimezone();
12670
12670
  return showTimezone ? dateString + (" (" + timezone + ")") : dateString;
12671
12671
  };
12672
12672
  var formatShortDate = function formatShortDate(date, timezone) {
12673
- return runLocaleDateFormat(date, timezone, SHORT_DATE_FORMAT);
12673
+ if (!date) return '';
12674
+ var day = date.getUTCDate().toString().padStart(2, '0');
12675
+ var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
12676
+ var month = months[date.getUTCMonth()];
12677
+ var year = date.getUTCFullYear();
12678
+ var dateString = day + " " + month + " " + year;
12679
+ var showTimezone = timezone && timezone != currentTimezone();
12680
+ return showTimezone ? dateString + (" (" + timezone + ")") : dateString;
12674
12681
  };
12675
12682
  var formatTime = function formatTime(date, withSeconds) {
12676
12683
  var options = {
@@ -12763,7 +12770,7 @@ var _formatDate = function _formatDate(date, format) {
12763
12770
  if (format == 'hh:mm') return formatTime(date);
12764
12771
  if (format == 'hh:mm:ss') return formatTime(date, true);
12765
12772
  if (format == 'DD MMMM YYYY') return formatShortDate(date);
12766
- if (format == 'MMMM YYYY') return runLocaleDateFormat(date, null, SHORT_WITHOUT_DAY_DATE_FORMAT);
12773
+ if (format == 'MMMM YYYY') return formatShortDateWithoutDay(date, null);
12767
12774
 
12768
12775
  // .toISOString().split('.')[0]+"Z"
12769
12776
  if (format == 'YYYY-MM-DD[T]HH:mm:ss') return date.getFullYear() + "-" + mm + "-" + dd + "T" + formatTime(date);