Format timestamps to be in local time zone provided by Discord
This commit is contained in:
parent
84561948da
commit
3fffcf86c9
@ -317,7 +317,7 @@ class Tracker(Extension):
|
||||
|
||||
return (
|
||||
f"Last Price Value for {region}: {format(region_history.last_price_datum[1], ",")}\n"
|
||||
f"Last Update Time: {region_history.last_price_datum[0].strftime('%Y-%m-%d %H:%M:%S UTC')}\n"
|
||||
f"Last Update Time: <t:{int(region_history.last_price_datum[0].timestamp())}:F> local time\n"
|
||||
f"Last Price Movement: {price_movement_str}"
|
||||
)
|
||||
|
||||
@ -494,7 +494,7 @@ class Tracker(Extension):
|
||||
if trigger.last_trigger is not None:
|
||||
alert_str = (
|
||||
f"Last Alerting Price Value: {format(trigger.last_alerting[1], ",")}\n"
|
||||
f"Last Alerting Time: {trigger.last_alerting[0].strftime('%Y-%m-%d %H:%M:%S UTC')}\n"
|
||||
f"Last Alerting Time: <t:{int(trigger.last_alerting[0].timestamp())}:F> local time\n"
|
||||
f"[Link to this Chart]({self._render_token_url(alert)})\n"
|
||||
)
|
||||
if user is not None and user.user_id == 265678699435655169:
|
||||
|
Loading…
Reference in New Issue
Block a user