diff options
| author | dam <dam@gudinoff> | 2023-04-06 15:58:42 +0100 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2023-04-06 15:58:42 +0100 |
| commit | 8016c2aabb20aa820eff09f339445a5524582c3d (patch) | |
| tree | 48f7ef3d67bd1112b35dd912b3351a7b29c05a7d /ttt.jai | |
| parent | 65468b9e712e77feb972b785328110a4e375d16b (diff) | |
| download | task-time-tracker-8016c2aabb20aa820eff09f339445a5524582c3d.tar.zst task-time-tracker-8016c2aabb20aa820eff09f339445a5524582c3d.zip | |
Fixed bug: correct timezone is used on draw_tui.
Diffstat (limited to 'ttt.jai')
| -rw-r--r-- | ttt.jai | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1061,7 +1061,7 @@ draw_tui :: (db: *Database, layout: *Layout) { active_task := get_active_task(db); selected_task := get_selected_task(db); now_utc := current_time_consensus(); - now_week_day := to_calendar(now_utc).day_of_week_starting_at_0; + now_week_day := to_calendar(now_utc, .LOCAL).day_of_week_starting_at_0; // Reset theme and clear screen. attrset(A_NORMAL); @@ -1101,7 +1101,7 @@ draw_tui :: (db: *Database, layout: *Layout) { idx := adjust_first_day_of_week[it]; x += 1; - // Apply theme. FIXME Not working (tested at 00:40 UTC+1 and showed one day earlier. + // Apply theme. if (idx == now_week_day && active_task != null) { attron(COLOR_PAIR(xx Styles.ACTIVE) | A_BOLD); } |
