feat(sql lab): display presto and trino tracking url (#20799)

This commit is contained in:
Jesse Yang
2022-07-26 20:20:08 -07:00
committed by GitHub
parent 35184b2994
commit 77db0651d8
18 changed files with 340 additions and 84 deletions

View File

@@ -22,6 +22,7 @@ EPOCH = datetime(1970, 1, 1)
def datetime_to_epoch(dttm: datetime) -> float:
"""Convert datetime to milliseconds to epoch"""
if dttm.tzinfo:
dttm = dttm.replace(tzinfo=pytz.utc)
epoch_with_tz = pytz.utc.localize(EPOCH)