-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a8269d
commit bb96c03
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"steps": [ | ||
{ | ||
"if": "unix", | ||
"args": "run -A main.ts", | ||
"output": "ok\n" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const date = new Date("2018-04-14T12:34:56.789Z"); | ||
|
||
Deno.env.set("TZ", "Europe/Amsterdam"); | ||
if (!date.toString().match(/^Sat Apr 14 2018 14:34:56 GMT\+0200 \(.+\)$/)) { | ||
throw new Error(`date.toString() did not match the expected pattern`); | ||
} | ||
|
||
Deno.env.set("TZ", "Europe/London"); | ||
if (!date.toString().match(/^Sat Apr 14 2018 13:34:56 GMT\+0100 \(.+\)$/)) { | ||
throw new Error(`date.toString() did not match the expected pattern`); | ||
} | ||
|
||
console.log("ok"); |