You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any cached date entries may become invalid. In particular, when parsing relative dates such as 'today' / 'tomorrow' / 'yesterday' the cache entries for these must be invalidated when the date changes otherwise they represent the wrong date.
Specifically it looks like this is an issue with the replaceHash where it caches the relative dates once onload.
Quick example:
<< Current Date: 2/2/15 >>
Date.parse('tomorrow') => 2/3/15
<< Current Date 2/3/15 >>
Date.parse('tomorrow') => 2/3/15
The text was updated successfully, but these errors were encountered:
cowsrule
changed the title
Cache needs expiration policy
Parse cache needs expiration policy
Feb 3, 2015
Any cached date entries may become invalid. In particular, when parsing relative dates such as 'today' / 'tomorrow' / 'yesterday' the cache entries for these must be invalidated when the date changes otherwise they represent the wrong date.
Specifically it looks like this is an issue with the replaceHash where it caches the relative dates once onload.
Quick example:
<< Current Date: 2/2/15 >>
Date.parse('tomorrow') => 2/3/15
<< Current Date 2/3/15 >>
Date.parse('tomorrow') => 2/3/15
The text was updated successfully, but these errors were encountered: