Fixes in json and dashboard
This commit is contained in:
parent
fa8b8be4f5
commit
8c2bcdc74a
5 changed files with 148 additions and 4 deletions
|
|
@ -217,7 +217,7 @@ def obtain_timestamp(timeform):
|
|||
|
||||
# timestamp is gmt time, convert in normal time
|
||||
|
||||
def timestamp_to_datetime(timestamp):
|
||||
def timestamp_to_datetime(timestamp, sql_format_time=sql_format_time):
|
||||
|
||||
"""Turn datetime in YYYYMMDDHHmmss format.
|
||||
|
||||
|
|
@ -233,7 +233,7 @@ def timestamp_to_datetime(timestamp):
|
|||
|
||||
# Get a utc timestamp and convert to local
|
||||
|
||||
def timestamp_to_datetime_local(timestamp, tz=''):
|
||||
def timestamp_to_datetime_local(timestamp, tz='', sql_format_time=sql_format_time):
|
||||
"""Get a utc timestamp and convert to timezone datetime in YYYYMMDDHHmmss format.
|
||||
|
||||
Args:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue