-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: remove timestamp from register_feedback
This is a deprecated field, should use occurred_at instead.
- Loading branch information
1 parent
6233669
commit fcf0d5a
Showing
3 changed files
with
1 addition
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
import datetime as dt | ||
|
||
|
||
def total_milliseconds_since_epoch(t: dt.datetime) -> int: | ||
return int((t - dt.datetime.fromtimestamp(0, dt.timezone.utc)).total_seconds() * 1000.0) | ||
|
||
|
||
def has_timezone(d: dt.datetime) -> bool: | ||
return d.tzinfo is not None and d.tzinfo.utcoffset(d) is not None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters