Commit 6096d41
authored
### Rationale for this change
DateTimeTestProjector.TestDateTime fails for me locally and it looks like the issue is that it's comparing datetimes calculated with two different methods:
1. Epoch(): Uses timegm as of #49953
2. DaysSince() was still using mktime
### What changes are included in this PR?
Updated DaysSince() helper to use timegm to match other helpers so comparisons can be made without local time one handling issues.
### Are these changes tested?
Yes. The test that fails locally now passes locally with this.
### Are there any user-facing changes?
No.
* GitHub Issue: #50399
Authored-by: Bryce Mecum <petridish@gmail.com>
Signed-off-by: Bryce Mecum <petridish@gmail.com>
1 parent 5f6ee02 commit 6096d41
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
0 commit comments