diff options
| author | Tyler <tyler@tylerhoang.xyz> | 2026-05-16 00:18:11 -0700 |
|---|---|---|
| committer | Tyler <tyler@tylerhoang.xyz> | 2026-05-16 00:18:11 -0700 |
| commit | 75dbe29b7bfe1f9135b1c37352569c0590fe6dce (patch) | |
| tree | 0483126008f71e9f7677cc1e8e1024b8b31ddce9 /components/filings.py | |
| parent | 07de8ca5cc62727f52b1be867f00721890b17fce (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 'components/filings.py')
0 files changed, 0 insertions, 0 deletions
