Commit 048fa87
Normalize naive datetimes to UTC in parse_watch_expiration
When parse_rfc3339 returns a naive datetime (no timezone info),
explicitly set tzinfo to UTC before calling timestamp(). This
ensures consistent behavior regardless of server timezone and
matches the pattern used in format_rfc3339.
Co-authored-by: Hubert <hubert-marek@users.noreply.github.com>1 parent 0550cc8 commit 048fa87
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
155 | 159 | | |
156 | 160 | | |
157 | 161 | | |
| |||
0 commit comments