aboutsummaryrefslogtreecommitdiff
path: root/services/__init__.py
diff options
context:
space:
mode:
authorTyler <tyler@tylerhoang.xyz>2026-05-16 00:18:11 -0700
committerTyler <tyler@tylerhoang.xyz>2026-05-16 00:18:11 -0700
commit75dbe29b7bfe1f9135b1c37352569c0590fe6dce (patch)
tree0483126008f71e9f7677cc1e8e1024b8b31ddce9 /services/__init__.py
parent07de8ca5cc62727f52b1be867f00721890b17fce (diff)
Fix timezone shift and script-tag escape in news tab
Unix-int timestamps from Finnhub were returned as naive UTC, then .timestamp() reinterpreted them as local time — shifting relative ages and date filtering. Now normalize to local-naive like the other branches. Also escape </ in the JSON embedded in <script>, so headlines containing </script> cannot break out of the inline script. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Diffstat (limited to 'services/__init__.py')
0 files changed, 0 insertions, 0 deletions