@cellaware/utils 4.1.4 → 4.1.5
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/azure/cosmos.js +4 -0
- package/package.json +1 -1
package/dist/azure/cosmos.js
CHANGED
|
@@ -4,6 +4,7 @@ const COSMOS_CURRENT_DATETIME = `GetCurrentDateTime()`;
|
|
|
4
4
|
const COSMOS_TIMESTAMP_DATETIME = `TimestampToDateTime(c._ts*1000)`;
|
|
5
5
|
/**
|
|
6
6
|
* All Cosmos timestamps are UTC.
|
|
7
|
+
* https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
7
8
|
*/
|
|
8
9
|
function getCosmosTimeZoneHourDiff(timeZone) {
|
|
9
10
|
let diff = 0;
|
|
@@ -19,6 +20,9 @@ function getCosmosTimeZoneHourDiff(timeZone) {
|
|
|
19
20
|
case 'America/Denver':
|
|
20
21
|
diff = dst ? -6 : -7;
|
|
21
22
|
break;
|
|
23
|
+
case 'America/Phoenix':
|
|
24
|
+
diff = -7;
|
|
25
|
+
break;
|
|
22
26
|
case 'America/Los_Angeles':
|
|
23
27
|
diff = dst ? -7 : -8;
|
|
24
28
|
break;
|