Commit 9a2d46f
committed
fix: use sqlx chrono decode for thread timestamps instead of manual parsing
Use sqlx's native DateTime<Utc> decoding for thread timestamp columns
instead of fetching as String and manually parsing. This was missed when
the baxen/goose2 branch was merged into main via PR #8516.
The manual parsing silently falls back to Utc::now() on parse failure,
which could produce incorrect timestamps. Letting sqlx decode directly
is both more correct and simpler.
Signed-off-by: Matt Toohey <contact@matttoohey.com>1 parent dc052f4 commit 9a2d46f
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
0 commit comments