IDKHowToCodeFr commited on
Commit
50b29e5
·
verified ·
1 Parent(s): 6046b02

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. frontend/Home.py +2 -1
frontend/Home.py CHANGED
@@ -127,7 +127,8 @@ def _candle_at(t_epoch, prev_alerts, curr_alerts):
127
  l = max(l, 0)
128
 
129
  # Convert UTC timestamp to IST for display
130
- ts = pd.Timestamp.fromtimestamp(t_epoch)
 
131
  if "hf.space" in os.getenv("SPACE_ID", ""):
132
  ts = ts + timedelta(hours=5, minutes=30)
133
 
 
127
  l = max(l, 0)
128
 
129
  # Convert UTC timestamp to IST for display
130
+ # Use pandas to handle the epoch conversion and then add offset
131
+ ts = pd.to_datetime(t_epoch, unit='s')
132
  if "hf.space" in os.getenv("SPACE_ID", ""):
133
  ts = ts + timedelta(hours=5, minutes=30)
134