Skip to content

Commit 0af7ced

Browse files
committed
slips_utils: use the local timezone from utils.local_tz instead of detecting it
1 parent 46eb00d commit 0af7ced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slips_files/common/slips_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def convert_format(self, ts, required_format: str):
265265

266266
# convert to the req format
267267
if required_format == "iso":
268-
return datetime_obj.astimezone().isoformat()
268+
return datetime_obj.astimezone(tz=self.local_tz).isoformat()
269269
elif required_format == "unixtimestamp":
270270
return datetime_obj.timestamp()
271271
else:

0 commit comments

Comments
 (0)