bug fix
This commit is contained in:
parent
485b4a6f0d
commit
afd98c3661
@ -11,9 +11,9 @@ def clean_json():
|
|||||||
list = []
|
list = []
|
||||||
data = json.load(file)
|
data = json.load(file)
|
||||||
for datas in data:
|
for datas in data:
|
||||||
datas[0] = datas[0]/1000
|
unix = datas[0]/1000
|
||||||
datas[0] = int(datas[0])
|
unix = int(unix)
|
||||||
date = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(int(datas[0])))
|
date = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(int(unix)))
|
||||||
date = datetime.datetime.strptime(str(date), "%Y-%m-%d %H:%M:%S")
|
date = datetime.datetime.strptime(str(date), "%Y-%m-%d %H:%M:%S")
|
||||||
year = date.year
|
year = date.year
|
||||||
month = date.month
|
month = date.month
|
||||||
|
Loading…
Reference in New Issue
Block a user