@annalib/anna-core 5.1.8 → 5.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.
@@ -379,13 +379,13 @@ class AnnaDateTimeFormatService {
379
379
  return isAsc ? dayjs(a).diff(b) : dayjs(b).diff(a);
380
380
  }
381
381
  static formatTwentyFourHourTimeToHHMMAFormat(value, date) {
382
- value = dayjs(date ? date : '01/01/2000 ' + value).format("DD/MM/YYYY HH:mm:ss");
382
+ value = dayjs(date ? date : '01/01/2000 ' + value).format("HH:mm:ss");
383
383
  return value[3] == "0" && value[4] == "0"
384
384
  ? dayjs(value, ["HH:mm:ss"]).format("hA").slice(0, -1)
385
385
  : dayjs(value, ["HH:mm:ss"]).format("h:mmA").slice(0, -1);
386
386
  }
387
387
  static formatTwelveHourTimeToHHMMAFormat(timeValue, date) {
388
- timeValue = dayjs(date ? date : '01/01/2000 ' + timeValue).format("DD/MM/YYYY HH:mm:ss");
388
+ timeValue = dayjs(date ? date : '01/01/2000 ' + timeValue).format("HH:mm:ss");
389
389
  return timeValue[3] == "0" && timeValue[4] == "0"
390
390
  ? dayjs(timeValue).format("hA").slice(0, -1)
391
391
  : dayjs(timeValue).format("h:mmA").slice(0, -1);