<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iriya_0624</author_name>
  <author_url>https://blog.hatena.ne.jp/iriya_0624/</author_url>
  <blog_title>戯言メイテル</blog_title>
  <blog_url>https://iriya-0624.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby on Rails</anon>
  </categories>
  <description>やりたいこと タイムゾーンにJSTを使用したい。 RailsではDB保存はUTCで行い、表示の時だけJSTにするというのが通常の方法らしいが、DBの値を元に障害調査する時など表示とDBの値が違うのは何かと面倒であるため、DB保存と表示どちらもJSTにする。 方法 application.rbに設定追加 表示時のタイムゾーンをJSTに変更 $ vi config/application.rb config.time_zone = 'Tokyo' DB保存時のタイムゾーンをJSTに変更 $ vi config/application.rb config.active_record.default_…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Firiya-0624.hatenadiary.org%2Fentry%2F20130429%2F1367244830&quot; title=&quot;Ruby on RailsでタイムゾーンにJSTを使用する方法 - 戯言メイテル&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>2013-04-29 23:13:50</published>
  <title>Ruby on RailsでタイムゾーンにJSTを使用する方法</title>
  <type>rich</type>
  <url>https://iriya-0624.hatenadiary.org/entry/20130429/1367244830</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
