<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ch3cooh393</author_name>
  <author_url>https://blog.hatena.ne.jp/ch3cooh393/</author_url>
  <blog_title>iOSアプリ開発の逆引き辞典</blog_title>
  <blog_url>https://ios.ch3cooh.jp/</blog_url>
  <categories>
    <anon>NSDate</anon>
  </categories>
  <description>2011年11月13日の場合、例えば「20111113」みたいに「yyyyMMdd」の形式でplistに保存していました。日付の判定にミスすることが判ったので調査してみたら、下記のエントリを発見しました。 iPhoneのカレンダー設定を和暦にしていると、日付と曜日がずれる問題が起こる - odawaraの「はてな de メモ」&gt; 一般-&gt;言語設定-&gt;カレンダーで西暦以外(和暦orタイ仏歴)を選択していると、NSDateFormatterでフォーマットする年が平成yyyy年とかになるらしい。 &lt;&lt; つまりどういう事かというと、「2011/11/13」という文字列をNSDateに変換してみましょう…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fios.ch3cooh.jp%2Fentry%2F20111113%2F1321110000&quot; title=&quot;カレンダー設定を和暦にすると2011年が西暦3999年と解釈されてしまう問題に対応する - iOSアプリ開発の逆引き辞典&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-11-13 00:00:00</published>
  <title>カレンダー設定を和暦にすると2011年が西暦3999年と解釈されてしまう問題に対応する</title>
  <type>rich</type>
  <url>https://ios.ch3cooh.jp/entry/20111113/1321110000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
