change time zone to UTC, show zone in timestamps

This commit is contained in:
jomo
2014-10-13 02:21:19 +02:00
parent f03d634b88
commit cf5207b22f
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ module ApplicationHelper
def time(tm)
if tm
content_tag :time, title: tm.strftime("%e %b %Y, %H:%M"), datetime: tm.to_datetime.rfc3339 do
content_tag :time, title: tm.strftime("%e %b %Y, %H:%M %Z"), datetime: tm.to_datetime.rfc3339 do
tm.strftime("%e %b %Y, %H:%M")
end
end

View File

@@ -39,7 +39,7 @@ module Redstoner
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
config.time_zone = 'Berlin'
config.time_zone = 'UTC'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]