Commit b8687df
committed
#665194: Update email.utils.localtime to use astimezone, and fix bug.
The new code correctly handles historic changes in UTC offsets.
A test for this should follow.
Original patch by Alexander Belopolsky.1 parent 17183a2 commit b8687dfCopy full SHA for b8687df
3 files changed
+33-31Lines changed: 33 additions & 31 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- Lib
- email
- test/test_email
- Misc
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+22-29Lines changed: 22 additions & 29 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
386 | 386 | |
387 | 387 | |
388 | 388 | |
389 | | - |
390 | | - |
391 | | - |
392 | | - |
393 | | - |
394 | | - |
395 | | - |
396 | | - |
397 | | - |
| 389 | + |
| 390 | + |
| 391 | + |
| 392 | + |
| 393 | + |
| 394 | + |
| 395 | + |
| 396 | + |
| 397 | + |
| 398 | + |
| 399 | + |
| 400 | + |
| 401 | + |
| 402 | + |
| 403 | + |
| 404 | + |
| 405 | + |
| 406 | + |
| 407 | + |
| 408 | + |
398 | 409 | |
399 | | - |
400 | | - |
401 | | - |
402 | | - |
403 | | - |
404 | | - |
405 | | - |
406 | | - |
407 | | - |
408 | | - |
409 | | - |
410 | | - |
411 | | - |
412 | | - |
413 | | - |
414 | | - |
415 | | - |
416 | | - |
417 | | - |
418 | | - |
| 410 | + |
| 411 | + |
Collapse file
Lib/test/test_email/test_utils.py
Copy file name to clipboardExpand all lines: Lib/test/test_email/test_utils.py+8-2Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
87 | 87 | |
88 | 88 | |
89 | 89 | |
| 90 | + |
90 | 91 | |
91 | 92 | |
92 | 93 | |
93 | 94 | |
94 | | - |
| 95 | + |
| 96 | + |
| 97 | + |
95 | 98 | |
| 99 | + |
96 | 100 | |
97 | 101 | |
98 | 102 | |
99 | 103 | |
100 | | - |
| 104 | + |
| 105 | + |
| 106 | + |
101 | 107 | |
102 | 108 | |
103 | 109 | |
|
Collapse file
+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
24 | 24 | |
25 | 25 | |
26 | 26 | |
| 27 | + |
| 28 | + |
| 29 | + |
27 | 30 | |
28 | 31 | |
29 | 32 | |
|
0 commit comments