<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Thoames1212</author_name>
  <author_url>https://blog.hatena.ne.jp/Thoames1212/</author_url>
  <blog_title>とーますメモ</blog_title>
  <blog_url>https://thoames.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>自分用メモ。大事なことは全て以下のページにあった。 qiita.com qiita.com上記の内容から重要なポイントを抜き出すと以下の通り。 １）タイムゾーンの設定 システムまたは環境変数のタイムゾーンとapplication.rb(time_zone)が同じならば、 Time.nowでもTime.current(Time.zone.now)でも同じ。 ２）Rails経由でDBに保存されるtimeについて [config.active_record.default_timezon]を[:local]に設定していなければ、RailsはMySQLのタイムゾーンを無視して時間をUTCで保存する。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthoames.hatenadiary.jp%2Fentry%2F2019%2F09%2F13%2F162214&quot; title=&quot;【Rails】難しすぎる!? Timezone（タイムゾーン）についてのメモ - とーますメモ&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>2019-09-13 16:22:14</published>
  <title>【Rails】難しすぎる!? Timezone（タイムゾーン）についてのメモ</title>
  <type>rich</type>
  <url>https://thoames.hatenadiary.jp/entry/2019/09/13/162214</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
