Earlier quoted context omitted.
Use UTC UNIX timestamps (i.e. Date.now()) for ALL time-related processing and only convert to hours/minutes when taking input/output from the user.
That's a good starting point, and certainly good advice for marking current time and past times. But keep in mind that future event absolute UTC can change due to politics, e.g. a change in daylight savings rules, which is less rare than you might imagine ( https://en.m.wikipedia.org/wiki/Daylight_saving_time_by_coun... ). That concert scheduled a year from now at 8pm in UTC+5 might actually end up occurring at 8pm i…
But not too far past!