Commit 74d5376
Avoid offset error in taskwarrior DST calculation
taskwarrior seems to have a problem with time zones with daylight saving
time when doing calculations:
$ TZ=UTC task calc "eoy - 4 months"
2022-09-02T23:59:59
$ TZ=Europe/Berlin task calc "eoy - 4 months"
2022-09-03T00:59:59
The old pytz code did the same and computed 2022-09-03T00:59:59 whereas
the new zoneinfo version computes 2022-09-02T23:59:59. Instead of
working around taskwarrior this changes the test to be outside of the
DST.1 parent 0307266 commit 74d5376
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1267 | 1267 | | |
1268 | 1268 | | |
1269 | 1269 | | |
1270 | | - | |
| 1270 | + | |
1271 | 1271 | | |
1272 | 1272 | | |
1273 | 1273 | | |
| |||
1277 | 1277 | | |
1278 | 1278 | | |
1279 | 1279 | | |
1280 | | - | |
| 1280 | + | |
1281 | 1281 | | |
1282 | 1282 | | |
1283 | 1283 | | |
| |||
1287 | 1287 | | |
1288 | 1288 | | |
1289 | 1289 | | |
1290 | | - | |
| 1290 | + | |
1291 | 1291 | | |
1292 | 1292 | | |
1293 | 1293 | | |
| |||
0 commit comments