Skip to content

Commit 5b5d482

Browse files
authored
Merge pull request #26 from LouisAuneau/master
[FIX] Erased timezone in `$toMillis` implementation
2 parents da22048 + 977f85e commit 5b5d482

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/jsonata/functions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2107,8 +2107,6 @@ def datetime_to_millis(timestamp: Optional[str], picture: Optional[str]) -> Opti
21072107
dt = datetime.datetime.fromisoformat(timestamp)
21082108
if dt.tzinfo is None:
21092109
dt = dt.replace(tzinfo=datetime.timezone.utc)
2110-
else:
2111-
dt = dt.astimezone(datetime.timezone.utc)
21122110
return int(dt.timestamp() * 1000)
21132111
# try:
21142112
# size = len(timestamp)

0 commit comments

Comments
 (0)