pkalkman commited on
Commit
65e3d4b
·
1 Parent(s): 3850b6d

fix issue with datetime

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -177,7 +177,7 @@ def get_last_refresh_time(path) -> str:
177
  latest_time = max([os.path.getmtime(f) for f in csv_files])
178
 
179
  # Convert to human-readable format
180
- return datetime.fromtimestamp(latest_time).strftime('%Y-%m-%d %H:%M:%S')
181
 
182
 
183
  with block:
 
177
  latest_time = max([os.path.getmtime(f) for f in csv_files])
178
 
179
  # Convert to human-readable format
180
+ return datetime.datetime.fromtimestamp(latest_time).strftime('%Y-%m-%d %H:%M:%S')
181
 
182
 
183
  with block: