Repository navigation
Commit a6b31ad
authored
support: use a keyword argument for datetime.fromtimestamp (#1146)
This is how it's documented, cf.
* https://docs.python.org/3/library/datetime.html#datetime.datetime.fromtimestamp
* https://docs.python.org/3/library/datetime.html#datetime.datetime.utcfromtimestamp
Quoting from the doc:
> the recommended way to create an object representing a specific
> timestamp in UTC is by calling datetime.fromtimestamp(timestamp,
> tz=timezone.utc).
This is just a nit, it doesn't _fix_ anything, it's just better style
IMO.1 parent 41bbd89 commit a6b31ad
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
0 commit comments