Re:iOS 6: Do Not Disturb mode stays on after scheduled time
by MrHus on Wednesday January 02, 2013 @05:07PM
(#4999611)
I fixed the same bug today, it happens when using YYYY instead of yyyy as a dateformat. YYYY is the year of the week the day falls in.
[ Parent
| on HN ]
Re:iOS 6: Do Not Disturb mode stays on after scheduled time
by lstrojny on Thursday January 03, 2013 @05:24AM
(#5001730)
Could you elaborate what exactly is the bug there?
Re:iOS 6: Do Not Disturb mode stays on after scheduled time
by MrHus on Thursday January 03, 2013 @12:58PM
(#5003559)
In my case I had a date that I needed to parse from JSON. It was in this format: 2012-01-21. I parsed it using YYYY-MM-dd. It should have been yyyy-MM-dd for the reasons above.
It is not technically a bug but it real easy to get wrong. Perhaps they should have picked sometimg other than YYYY for week years.