Commit 14262cd
authored
Fix panic when formatting timestamp with timezone specifier (#983)
Fixes a panic that occurs when a timestamp is formatted using `date`
with any timezone-related specifiers (`%Z`, `%z`) when a timezone
argument is not provided. Datetime strings already handle this case by
assuming the value is in UTC, so the fix here is to do the same for
timestamps as well.1 parent 4e5145e commit 14262cd
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
445 | 455 | | |
446 | 456 | | |
447 | 457 | | |
| |||
0 commit comments