Open jjakob opened 5 years ago
That sounds like a good improvement. I'll look into it
Also worth documenting that the times are in UTC regardless of the system timezone and the datatime objects are naive (have no timezone data). It would maybe be useful to make these aware.
It wouldn't simplify things much as to conversion to local time but might be more correct.
There is a way to get these from data{} but unformatted, as-is in leases file. start and end get formatted with parse_time so these four should be also. Otherwise we'd need to duplicate the parse_time in our script.