Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daylight Saving Time (DST) support #59 #62

Merged
merged 30 commits into from
Oct 25, 2024
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
150f2d1
Prepare DST support: view_test.go: DST testing
jnd-au Oct 10, 2024
95986ab
Prepare DST support: testdata/view/test-dst-*-days.txt: left-aligned …
jnd-au Oct 10, 2024
c686430
Prepare DST support: testdata/view/test-dst-*-days.txt: right-aligned…
jnd-au Oct 10, 2024
29b013d
Prepare DST support: testdata/view/test-dst-*-days.txt: wrong zones (…
jnd-au Oct 10, 2024
88d4c6a
Prepare DST support: view_test.go: Fractional timezone testing
jnd-au Oct 10, 2024
1ee0ce0
Prepare DST support: testdata/view/test-fractional-timezone-offsets.t…
jnd-au Oct 10, 2024
8c2fc01
Prepare DST support: testdata/view/test-fractional-timezone-offsets.t…
jnd-au Oct 10, 2024
6e49188
Prepare DST support: testdata/view/test-fractional-timezone-offsets.t…
jnd-au Oct 10, 2024
9411b3c
Prepare DST support: view_test.go: Midnight DST support
jnd-au Oct 10, 2024
e66bf8a
Prepare DST support: testdata/view/test-dst-midnights.txt (original a…
jnd-au Oct 10, 2024
1228d33
Prepare DST support: testdata/view/test-dst-midnights.txt (right-alig…
jnd-au Oct 10, 2024
dc43d37
Prepare DST support: view_test.go: Local zone comparison
jnd-au Oct 10, 2024
cabdb0c
Prepare DST support: testdata/view/test-local-timezones.txt (original…
jnd-au Oct 10, 2024
acb2291
Prepare DST support: testdata/view/test-local-timezones.txt (right-al…
jnd-au Oct 10, 2024
5d058bb
DST support Part 1: config.go: Use stable time (fix 0bdd6e2)
jnd-au Oct 11, 2024
68ea4f7
DST support Part 1: clock.go: AddHours: Preserve current minute (fix …
jnd-au Oct 11, 2024
41ec305
DST support Part 2: view.go: Rename currentTime to timeInZone
jnd-au Oct 11, 2024
f7a2147
DST support Part 2: view.go: Major DST implementation (breaking chang…
jnd-au Oct 11, 2024
de15e5e
DST support Part 3: view.go: DST start/end visual indicators
jnd-au Oct 12, 2024
cec9768
DST support Part 4: view.go: Midnight DST support (fix 01ff381)
jnd-au Oct 12, 2024
ac75a0a
DST support Part 5: zone.go: Add Loc
jnd-au Oct 12, 2024
ff62be5
DST support Part 5: zone.go: Redefine Name, add dynamic Abbreviation(t)
jnd-au Oct 12, 2024
82a9af9
DST support Part 5: zone.go: Dynamic VerboseString(t) (fix 0bdd6e2)
jnd-au Oct 12, 2024
eb4e531
DST support Part 5: zone.go: Test dynamic VerboseString(t)
jnd-au Oct 12, 2024
4676cfc
DST support Part 5: config_test.go: Test LoadConfigParser
jnd-au Oct 12, 2024
638b37f
DST support Part 6: view.go: Zone offset styles (main.go: "z" key)
jnd-au Oct 12, 2024
91c32b9
DST support Part 6: view.go: Format styles (main.go: "f" key)
jnd-au Oct 12, 2024
1aaf8b5
view.go: highlight zone with markers (main.go: "j"/"k" keys)
jnd-au Oct 13, 2024
6055a4d
view_test.go: Test new weekly key mappings per 31f3810
jnd-au Oct 25, 2024
498e6ca
view_test.go: Test zero-minute key mapping
jnd-au Oct 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Prepare DST support: testdata/view/test-dst-*-days.txt: wrong zones (…
…with regression 0bdd6e2)
jnd-au committed Oct 25, 2024
commit 29b013d55d9adb10dd775882ff9b3b68b035a51d
14 changes: 7 additions & 7 deletions testdata/view/test-dst-end-days.txt
Original file line number Diff line number Diff line change
@@ -24,10 +24,10 @@ This checks the following requirements:
🕐 (UTC) UTC 01:00, Sun Oct 27, 2024
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
📆 Sun 27
🕑 (CET) Europe/Paris 02:00, Sun Oct 27, 2024
🕑 (CEST) Europe/Paris 02:00, Sun Oct 27, 2024
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0
📆 Mon 28
🕒 (IST) Israel 03:00, Sun Oct 27, 2024
🕒 (IDT) Israel 03:00, Sun Oct 27, 2024
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0 1
📆 Mon 28
🕕 (IST) Asia/Calcutta 06:30, Sun Oct 27, 2024
@@ -64,7 +64,7 @@ This checks the following requirements:
🕑 (CEST) Europe/Paris 02:00, Sun Oct 27, 2024
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0 1
📆 Mon 28
🕑 (IST) Israel 02:00, Sun Oct 27, 2024
🕑 (IDT) Israel 02:00, Sun Oct 27, 2024
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0 1
📆 Mon 28
🕔 (IST) Asia/Calcutta 05:30, Sun Oct 27, 2024
@@ -98,10 +98,10 @@ This checks the following requirements:
🕑 (UTC) UTC 02:00, Sun Oct 27, 2024
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
📆 Sun 27
🕒 (CET) Europe/Paris 03:00, Sun Oct 27, 2024
🕒 (CEST) Europe/Paris 03:00, Sun Oct 27, 2024
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0
📆 Mon 28
🕓 (IST) Israel 04:00, Sun Oct 27, 2024
🕓 (IDT) Israel 04:00, Sun Oct 27, 2024
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0 1
📆 Mon 28
🕖 (IST) Asia/Calcutta 07:30, Sun Oct 27, 2024
@@ -246,10 +246,10 @@ This checks the following requirements:
🕐 (UTC) UTC 01:00, Mon Oct 28, 2024
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
📆 Mon 28
🕑 (CET) Europe/Paris 02:00, Mon Oct 28, 2024
🕑 (CEST) Europe/Paris 02:00, Mon Oct 28, 2024
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0
📆 Tue 29
🕒 (IST) Israel 03:00, Mon Oct 28, 2024
🕒 (IDT) Israel 03:00, Mon Oct 28, 2024
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0 1
📆 Tue 29
🕕 (IST) Asia/Calcutta 06:30, Mon Oct 28, 2024
10 changes: 5 additions & 5 deletions testdata/view/test-dst-start-days.txt
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ This checks the following requirements:
🕛 (UTC) UTC 00:00, Sun Mar 31, 2024
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
📆 Sun 31
🕐 (CET) Europe/Paris 01:00, Sun Mar 31, 2024
🕐 (CEST) Europe/Paris 01:00, Sun Mar 31, 2024
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0
📆 Mon 01
🕒 (IDT) Israel 03:00, Sun Mar 31, 2024
@@ -135,10 +135,10 @@ This checks the following requirements:
🕐 (UTC) UTC 01:00, Thu Mar 28, 2024
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
📆 Thu 28
🕑 (CET) Europe/Paris 02:00, Thu Mar 28, 2024
🕑 (CEST) Europe/Paris 02:00, Thu Mar 28, 2024
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0
📆 Fri 29
🕒 (IST) Israel 03:00, Thu Mar 28, 2024
🕒 (IDT) Israel 03:00, Thu Mar 28, 2024
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0 1
📆 Fri 29
🕕 (IST) Asia/Calcutta 06:30, Thu Mar 28, 2024
@@ -172,7 +172,7 @@ This checks the following requirements:
🕐 (UTC) UTC 01:00, Fri Mar 29, 2024
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
📆 Fri 29
🕑 (CET) Europe/Paris 02:00, Fri Mar 29, 2024
🕑 (CEST) Europe/Paris 02:00, Fri Mar 29, 2024
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0
📆 Sat 30
🕓 (IDT) Israel 04:00, Fri Mar 29, 2024
@@ -209,7 +209,7 @@ This checks the following requirements:
🕐 (UTC) UTC 01:00, Sat Mar 30, 2024
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
📆 Sat 30
🕑 (CET) Europe/Paris 02:00, Sat Mar 30, 2024
🕑 (CEST) Europe/Paris 02:00, Sat Mar 30, 2024
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0
📆 Sun 31
🕓 (IDT) Israel 04:00, Sat Mar 30, 2024