LostRhapsody / slothtime

Minimalist time tracking website
https://slothtime.dev
GNU General Public License v3.0
0 stars 0 forks source link

Time Entry Improvenemts - add AM/PM toggles #39

Open LostRhapsody opened 1 year ago

LostRhapsody commented 1 year ago

Add "AM" labels to all the time entry boxes (inside the same input or just next to the box).

Click on them to change them from AM to PM.

Should only display when in 12hr format. In the function that loops through the table and formats the time to either 24hr or 12hr, ensure the AM/PM labels are all set to hide when in 24hr time.

When adding new rows, should determine to use AM or PM based on time of day. If after 11 a.m., use PM (don't forget we're stupid and 12 p.m. is noon).

Add a new field to the time tracking table, 'time of day'. This should be included in the export.

LostRhapsody commented 1 year ago

While it will auto-suggest the AM/PM based on system time, it should also toggle depending on how you input your time. In other words, if it's AM, but I type 1315 in the time entry field, that should default to PM, as there is no hour 13 in the PM.

That being said, some users might not want this, as they probably write 2 for 2 am or 2 pm, so make this a toggleable action in the settings stored in the user config.