Skip to content

Commit

Permalink
Added time zone management module (microsoft#21246)
Browse files Browse the repository at this point in the history
This module aims to provide methods to correctly calculate the offset
between a datetime in a time zone from UTC and the offset between time
zones. Other than the functions in the Type Helper codeunit in the base
app, this module takes daylight saving time into account when
applicable.

Additionally, the module provides indicators on whether a time zone
supports daylight saving time or whether a given datetime falls within
the daylight saving time period for a given time zone.
  • Loading branch information
PeterConijn authored Jan 19, 2023
1 parent 6b8a98d commit ebe8947
Show file tree
Hide file tree
Showing 10 changed files with 712 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
permissionset 132979 "Date&Time - Execute"
{
Assignable = true;

IncludedPermissionSets = "Date & Time - Objects";
}
39 changes: 39 additions & 0 deletions Modules/System Test Libraries/Date & Time/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"id": "76e7cf97-ab30-49f0-b430-6a91b6ac9b53",
"name": "Date & Time Test Library",
"publisher": "Microsoft",
"version": "21.0.0.0",
"brief": "Library with Test objects for the Date & Time module",
"description": "Library with Test objects for the Date & Time module",
"privacyStatement": "https://go.microsoft.com/fwlink/?LinkId=724009",
"EULA": "https://go.microsoft.com/fwlink/?linkid=2009120",
"help": "",
"url": "https://go.microsoft.com/fwlink/?LinkId=724011",
"logo": "",
"dependencies": [
{
"id": "4c315253-b024-4fdc-9c3d-794036768af5",
"name": "Date & Time",
"publisher": "Microsoft",
"version": "21.0.0.0"
}
],
"screenshots": [],
"platform": "21.0.0.0",
"application": "21.0.0.0",
"idRanges": [
{
"from": 132979,
"to": 132979
}
],
"resourceExposurePolicy": {
"allowDebugging": true,
"allowDownloadingSource": false,
"includeSourceInSymbolFile": false
},
"runtime": "10.0",
"features": [
"NoImplicitWith"
]
}
75 changes: 75 additions & 0 deletions Modules/System Tests/Date & Time/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"id": "93de27b1-58ac-4586-8f28-805cec92d808",
"name": "Time Zone Management Test",
"publisher": "Default publisher",
"version": "1.0.0.0",
"brief": "",
"description": "",
"privacyStatement": "",
"EULA": "",
"help": "",
"url": "",
"logo": "",
"dependencies": [
{
"id": "4c315253-b024-4fdc-9c3d-794036768af5",
"name": "Date & Time",
"publisher": "Microsoft",
"version": "21.0.0.0"
},
{
"id": "40860557-a18d-42ad-aecb-22b7dd80dc80",
"name": "Permissions Mock",
"publisher": "Microsoft",
"version": "21.0.0.0"
},
{
"id": "76e7cf97-ab30-49f0-b430-6a91b6ac9b53",
"name": "Date & Time Test Library",
"publisher": "Microsoft",
"version": "21.0.0.0"
},
{
"id": "9856ae4f-d1a7-46ef-89bb-6ef056398228",
"publisher": "Microsoft",
"name": "System Application Test Library",
"version": "19.0.29884.30693"
},
{
"id": "dd0be2ea-f733-4d65-bb34-a28f4624fb14",
"publisher": "Microsoft",
"name": "Library Assert",
"version": "19.0.29884.30693"
},
{
"id": "23de40a6-dfe8-4f80-80db-d70f83ce8caf",
"publisher": "Microsoft",
"name": "Test Runner",
"version": "19.0.29884.30693"
},
{
"id": "5d86850b-0d76-4eca-bd7b-951ad998e997",
"publisher": "Microsoft",
"name": "Tests-TestLibraries",
"version": "19.0.29884.30693"
}
],
"screenshots": [],
"platform": "21.0.0.0",
"application": "21.0.0.0",
"idRanges": [
{
"from": 132979,
"to": 132979
}
],
"resourceExposurePolicy": {
"allowDebugging": true,
"allowDownloadingSource": false,
"includeSourceInSymbolFile": false
},
"runtime": "10.0",
"features": [
"NoImplicitWith"
]
}
Loading

0 comments on commit ebe8947

Please sign in to comment.