Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- 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 |
-
|
|
|
|
| 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 |
|