@azure/eventgrid 4.10.0-alpha.20220418.2 → 4.10.0-alpha.20220512.2
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.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist-esm/src/util.js +2 -2
- package/dist-esm/src/util.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -49,10 +49,10 @@ function dateToServiceTimeString(d) {
|
|
49
49
|
const month = d.getUTCMonth() + 1; // getUTCMonth returns 0-11 not 1-12.
|
50
50
|
const day = d.getUTCDate();
|
51
51
|
const year = d.getUTCFullYear();
|
52
|
-
const hour = d.getUTCHours() === 0 ? 12 : d.getUTCHours() % 12; // getUTCHours returns 0-23, and we want this in 12 hour format.
|
52
|
+
const hour = d.getUTCHours() === 0 || d.getUTCHours() === 12 ? 12 : d.getUTCHours() % 12; // getUTCHours returns 0-23, and we want this in 12 hour format.
|
53
53
|
const minute = d.getUTCMinutes().toString().padStart(2, "0");
|
54
54
|
const second = d.getUTCSeconds().toString().padStart(2, "0");
|
55
|
-
const am = d.getUTCHours() >=
|
55
|
+
const am = d.getUTCHours() >= 12 ? "PM" : "AM";
|
56
56
|
return `${month}/${day}/${year} ${hour}:${minute}:${second} ${am}`;
|
57
57
|
}
|
58
58
|
/**
|