{"id":6749,"date":"2013-01-03T22:24:44","date_gmt":"2013-01-04T03:24:44","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=6749"},"modified":"2016-05-08T23:46:10","modified_gmt":"2016-05-09T03:46:10","slug":"do-not-disturb-bug","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2013\/01\/03\/do-not-disturb-bug\/","title":{"rendered":"Do Not Disturb Bug"},"content":{"rendered":"<p><a href=\"http:\/\/www.macworld.com\/article\/2023580\/ios-do-not-disturb-feature-oversleeps-on-new-year-s-day.html\">Dan Frakes<\/a>:<\/p>\r\n<blockquote cite=\"http:\/\/www.macworld.com\/article\/2023580\/ios-do-not-disturb-feature-oversleeps-on-new-year-s-day.html\"><p>The problem&mdash;for some people, at least&mdash;is that come New Year&rsquo;s Day 2013, Do Not Disturb apparently forgot to set its own alarm (or anthropomorphically slept right through it). These users awoke to see the familiar crescent-moon icon in the status bar, meaning that Do Not Disturb mode was still active, hours after it was scheduled to disappear. A <em>Macworld<\/em> editor, for example, discovered that Do Not Disturb was still enabled at 10:30am, even though it was scheduled to turn off at 8:25am.<\/p><\/blockquote>\r\n<p><a href=\"http:\/\/daringfireball.net\/linked\/2013\/01\/02\/do-not-disturb\">John Gruber<\/a> notes that New Year&rsquo;s bugs are becoming an <a href=\"http:\/\/appleinsider.com\/articles\/11\/01\/01\/apple_admits_new_years_alarm_bug.html\">iOS tradition<\/a>.<\/p>\r\n<p><a href=\"http:\/\/support.apple.com\/kb\/TS4510?viewlocale=en_US&amp;locale=en_US\">Apple&rsquo;s TS4510<\/a> indicates that Apple knows about the bug, but rather than fix it is simply waiting for it to stop manifesting:<\/p>\r\n<blockquote cite=\"http:\/\/support.apple.com\/kb\/TS4510?viewlocale=en_US&amp;locale=en_US\"><p>Do Not Disturb scheduling feature will resume normal functionality after January 7, 2013. Before this date, you should manually turn the Do Not Disturb feature on or off.<\/p><\/blockquote>\r\n<p><a href=\"http:\/\/arstechnica.com\/apple\/2013\/01\/ask-ars-why-will-apples-do-not-disturb-bug-fix-itself-next-week\/\">Jacqui Cheng<\/a> speculates that the bug is due to using the wrong case in the <a href=\"http:\/\/site.icu-project.org\">ICU<\/a> <a href=\"http:\/\/www.unicode.org\/reports\/tr35\/tr35-25.html#Date_Format_Patterns\">format string<\/a>:<\/p>\r\n<blockquote cite=\"http:\/\/arstechnica.com\/apple\/2013\/01\/ask-ars-why-will-apples-do-not-disturb-bug-fix-itself-next-week\/\"><p>What&rsquo;s perplexing is that Apple points out this common mistake in its <a href=\"https:\/\/developer.apple.com\/library\/mac\/#documentation\/Cocoa\/Conceptual\/DataFormatting\/Articles\/dfDateFormatting10_4.html\">own date formatting documentation<\/a> for developers. YYYY specifies the week of the year (ISO) while yyyy specifies the calendar year (Gregorian). &ldquo;In most cases, yyyy and YYYY yield the same number, however they may be different. Typically you should use the calendar year,&rdquo; writes Apple.<\/p><\/blockquote>\r\n<p><a href=\"http:\/\/infiniteundo.com\/post\/25326999628\/falsehoods-programmers-believe-about-time\">Noah Sussman<\/a> (via <a href=\"https:\/\/twitter.com\/Schwieb\/status\/286645386423185408\">Erik Schwiebert<\/a>):<\/p>\r\n<blockquote cite=\"http:\/\/infiniteundo.com\/post\/25326999628\/falsehoods-programmers-believe-about-time\"><p>I have repeatedly been confounded to discover just how\r\nmany mistakes in <em>both<\/em> test <em>and<\/em> application code stem from\r\nmisunderstandings or misconceptions about <em>time.<\/em>  By this I mean both\r\nthe interesting way in which computers handle time, and the\r\nfundamental gotchas inherent in how we humans have constructed our\r\ncalendar &mdash; daylight savings being just the tip of the iceberg.<\/p>\r\n<p>In fact I have seen so many of these misconceptions crop up in other\r\npeople&rsquo;s (and my own) programs that I thought it would be worthwhile\r\nto collect a list of the more common problems here.<\/p><\/blockquote>\r\n<p>Update (2013-01-04): Patrick McKenzie has a related post, <a href=\"http:\/\/www.kalzumeus.com\/2010\/06\/17\/falsehoods-programmers-believe-about-names\/\">Falsehoods Programmers Believe About Names<\/a> (via <a href=\"https:\/\/pinboard.in\/u:ddribin\/b:8d9be12ffb5f\">Dave Dribin<\/a>).<\/p>","protected":false},"excerpt":{"rendered":"<p>Dan Frakes: The problem&mdash;for some people, at least&mdash;is that come New Year&rsquo;s Day 2013, Do Not Disturb apparently forgot to set its own alarm (or anthropomorphically slept right through it). These users awoke to see the familiar crescent-moon icon in the status bar, meaning that Do Not Disturb mode was still active, hours after it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[131,265,266,31,71],"class_list":["post-6749","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-bug","tag-donotdisturb","tag-icu","tag-ios","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=6749"}],"version-history":[{"count":4,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6749\/revisions"}],"predecessor-version":[{"id":14467,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6749\/revisions\/14467"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=6749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=6749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=6749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}