@annalib/anna-core 7.0.3 → 7.0.4

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.
@@ -381,15 +381,15 @@ class AnnaDateTimeFormatService {
381
381
  static formatTwentyFourHourTimeToHHMMAFormat(value, date) {
382
382
  value = dayjs(date ? date : '01/01/2000 ' + value).format("MM/DD/YYYY HH:mm:ss");
383
383
  return value[14] == "0" && value[15] == "0"
384
- ? dayjs(value, ["HH:mm:ss"]).format("hA").slice(0, -1)
385
- : dayjs(value, ["HH:mm:ss"]).format("h:mmA").slice(0, -1);
384
+ ? dayjs(value, ["MM/DD/YYYY HH:mm:ss"]).format("hA").slice(0, -1)
385
+ : dayjs(value, ["MM/DD/YYYY HH:mm:ss"]).format("h:mmA").slice(0, -1);
386
386
  }
387
387
  static formatTwelveHourTimeToHHMMAFormat(timeValue, date) {
388
388
  timeValue = dayjs(date ? date : '01/01/2000 ' + timeValue).format("MM/DD/YYYY HH:mm:ss");
389
389
  // check if min==00
390
390
  return timeValue[14] == "0" && timeValue[15] == "0"
391
- ? dayjs(timeValue, ["HH:mm:ss"]).format("hA").slice(0, -1)
392
- : dayjs(timeValue, ["HH:mm:ss"]).format("h:mmA").slice(0, -1);
391
+ ? dayjs(timeValue, ["MM/DD/YYYY HH:mm:ss"]).format("hA").slice(0, -1)
392
+ : dayjs(timeValue, ["MM/DD/YYYY HH:mm:ss"]).format("h:mmA").slice(0, -1);
393
393
  }
394
394
  formatDateAndHHMMATimeToStandardFormat(dateAndTime) {
395
395
  let standardFormat, date, time;