X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9690ef737c92f0b6105bb0ca39dc0e260cb92ae8..31a39d3479462ced8127f0f12e3f0133ce39263a:/app/helpers/changesets_helper.rb diff --git a/app/helpers/changesets_helper.rb b/app/helpers/changesets_helper.rb index b91810e95..5773240ff 100644 --- a/app/helpers/changesets_helper.rb +++ b/app/helpers/changesets_helper.rb @@ -10,13 +10,13 @@ module ChangesetsHelper end def changeset_details(changeset) - if changeset.closed_at > Time.now + if changeset.closed_at > Time.now.utc action = :created - time = time_ago_in_words(changeset.created_at, :scope => :'datetime.distance_in_words_ago') + time = time_ago_in_words(changeset.created_at, :scope => :"datetime.distance_in_words_ago") title = l(changeset.created_at) else action = :closed - time = time_ago_in_words(changeset.closed_at, :scope => :'datetime.distance_in_words_ago') + time = time_ago_in_words(changeset.closed_at, :scope => :"datetime.distance_in_words_ago") title = safe_join([t("browse.created"), ": ", l(changeset.created_at), " ".html_safe, t("browse.closed"), ": ", l(changeset.closed_at)]) end