<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>KishikawaKatsumi</author_name>
  <author_url>https://blog.hatena.ne.jp/KishikawaKatsumi/</author_url>
  <blog_title>24/7 twenty-four seven</blog_title>
  <blog_url>https://blog.kishikawakatsumi.com/</blog_url>
  <categories>
    <anon>iPhone</anon>
    <anon>Objective-C</anon>
    <anon>Cocoa</anon>
  </categories>
  <description>日本語環境では、NSDateFormatterでフォーマットした日付がおかしい - 24/7 twenty-four seven前に日本語環境ではフォーマットした時刻の表記に「午前・午後」が含まれてしまって使いにくいと書いたのですが、コメントにて、フォーマットする前にロケール(NSLocale)を設定すると良いと教えていただいたので、試してみました。 日本語だとおかしい、というより、locale を設定していないとだめみたいです。ja_JP を setLocale で設定すればちゃんと値が返ってきます。 日本語環境では、NSDateFormatterでフォーマットした日付がおかしい - 24/…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kishikawakatsumi.com%2Fentry%2F20090419%2F1227275688&quot; title=&quot;NSDateFormatterはフォーマットする前にロケールを設定すべき? - 24/7 twenty-four seven&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>2009-04-19 22:54:48</published>
  <title>NSDateFormatterはフォーマットする前にロケールを設定すべき?</title>
  <type>rich</type>
  <url>https://blog.kishikawakatsumi.com/entry/20090419/1227275688</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
