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
DateFormatter shows microseconds instead of %f for years <= 1900
It also fails to replace %y or %x correctly, since
its strftime implementation replaces only 4-digit years.
I added a boolean flag DateFormatter.replace_directives_before_1900:
- If False, strftime uses the old implementation, which will
not replace %f and which will replace incorrect values for %y and %x.
- If True, strftime will first try a few regular expressions
to replace %y/%x/%f with the appropriate datetime values. I'm
not positive this covers all cases but I don't know of any cases
where this fails right now.
Add a simple test for DateFormatter with and without this flag.
closes#3179
Change-Id: Idff9d06cbc6dc00a3cb8dcf113983d82dbdd3fde
0 commit comments