Commit 2ffc61a
fix(tw): fix double date formatting and annotation condition in edit_task.go (#465)
- Only append T00:00:00 to wait/due fields when the value is a date-only
string (no existing 'T'). Full ISO datetimes already formatted by the
controller were being corrupted to e.g. '2026-01-28T14:30:00T00:00:00'.
- Change len(annotations) >= 0 to len(annotations) > 0. The previous
condition was always true, causing the export/denotate/re-annotate block
to run on every edit even when no annotations were provided, silently
destroying and re-creating all existing task annotations unnecessarily.
Co-authored-by: Inderjeet Singh <inderjet05@gmail.com>1 parent ddf5ba0 commit 2ffc61a
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
63 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
| |||
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
85 | | - | |
| 91 | + | |
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
| |||
0 commit comments