forked frompython/pythondotorg
- Notifications
You must be signed in to change notification settings - Fork0
Commit00b4302
refactor: update
Instead of using a particular resolution on an object, which differsbetween `datetime.date` and `datetime.datetime` objects, operate onparent class of `datetime` and convert all `dt` to timezone-aware`datetime` values.This is also in accordance to the model field being a `DateTimeField`,so we should always be passing the correctly-created object, instead ofa `datetime.date()`, raising `received a naive datetime` warnings.Removes unused constants.Signed-off-by: Mike Fiedler <miketheman@gmail.com>Co-authored-by: Ee Durbin <ewdurbin@gmail.com>all_day
detection logic (python#2601)1 parent18e1d74 commit00b4302
2 files changed
+2
-8
lines changedLines changed: 1 addition & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 | 10 |
| |
14 | 11 |
| |
15 | 12 |
| |
| |||
31 | 28 |
| |
32 | 29 |
| |
33 | 30 |
| |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
| 31 | + | |
38 | 32 |
| |
39 | 33 |
| |
40 | 34 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
| 24 | + | |
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
|
0 commit comments
Comments
(0)