Skip to content

Commit 93abad8

Browse files
author
Artjoms Iskovs
committed
TS-225 Fixed a warning
1 parent df8a396 commit 93abad8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arctic/tickstore/tickstore.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,8 @@ def _to_buckets(self, x, symbol):
496496

497497
def _to_ms(self, date):
498498
if isinstance(date, dt):
499-
logger.warn('WARNING: treating naive datetime as London in write path')
499+
if not date.tzinfo:
500+
logger.warn('WARNING: treating naive datetime as London in write path')
500501
return datetime_to_ms(date)
501502
return date
502503

0 commit comments

Comments
 (0)