update August 4, 16:05: http://TiddlyTools.com/timer.html
<http://tiddlytools.com/timer.html>
* AnalogClock/DigitalClock - fixed "days per month" (dpm) calculations in
adjustForTimezone()
This wasn't actually working before, but I didn't notice because date
wraparound for July/August, both have 31 days.
Now, I tested with dates like "2020-03-01 04:00:00" with offset "-07:00"...
result is Feb 28th... before it was Feb 31st!!!
Note dpm for February is hard-coded to "28", so it doesn't handle leap
years.
<$set name="dpm" value="31 28 31 30 31 30 31 31 30 31 30 31"> <!-- days per
month -->
<$set name="dm" value={{{ [<dpm>split[ ]nth<mm>] }}}> <!-- days in
this month -->
Be sure to update before the end of September (the next month for which the
bug would have mattered).
-e
-e
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/213f78c3-d163-4932-b19f-7ef6dc04554fo%40googlegroups.com.