Hi Jed, Philippe,

> The now macro uses the built-in javascript date object.

In fact, the ISO 8601 week number calculations are part of utils.js:

https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/utils/utils.js#L354-L363
 
<https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/utils/utils.js#L354-L363>

As I recall, the logic was derived from an example like this:

http://techblog.procurios.nl/k/news/view/33796/14863/calculate-iso-8601-week-and-year-in-javascript.html
 
<http://techblog.procurios.nl/k/news/view/33796/14863/calculate-iso-8601-week-and-year-in-javascript.html>

It’s entirely possible that there is a bug in the implementation, or that 8601 
itself contains unexpected behaviours.

Best wishes

Jeremy

> This means that errors like that almost certainly come from your browsers 
> javascript implementation, not from the tiddlywiki side. So what browser are 
> you using? I think that the only fix we could do on this is detect the 
> browser and if there is some consistent error on one browser we can have the 
> macro adjust in those browsers.
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/e225a4a2-5e43-4ea4-bb2e-ad70761984ec%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/e225a4a2-5e43-4ea4-bb2e-ad70761984ec%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/647290E9-6FF0-4152-B822-3F450BC42AE9%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to