<?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>使用しているWebアプリの１つに Railsが管理しているDBではない、他のDBからのデータを取得する必要があった。当たり前の話だが、Railsではapplication.rbのtime_zoneの設定のため 日付取得の際に自動で、タイムゾーン変換が行われる。thoames.hatenadiary.jpそのため、以下の状況になってしまった。①Railsが管理しているDBの日付は、自動タイムゾーン変換をしてほしい。 ②Rails外のDBの日付は、自動タイムゾーン変換をしてほしくない。(*このDBの日付はDATETIME型）前提として、このWebアプリではconfig.time_zoneは指定して…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthoames.hatenadiary.jp%2Fentry%2F2019%2F09%2F16%2F035454&quot; title=&quot;【Rails】ActiveRecordの属性メソッドを上書きする - とーますメモ&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-16 03:54:54</published>
  <title>【Rails】ActiveRecordの属性メソッドを上書きする</title>
  <type>rich</type>
  <url>https://thoames.hatenadiary.jp/entry/2019/09/16/035454</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
