From 30f3e835bac98cbe00ed63d904851189a17d5952 Mon Sep 17 00:00:00 2001 From: Stephen Nelson Date: Mon, 4 Sep 2023 13:22:25 +0930 Subject: [PATCH] Remove deprecated default date and time formatters --- config/initializers/time_formats.rb | 5 ----- config/locales/koi.en.yml | 2 -- 2 files changed, 7 deletions(-) delete mode 100644 config/initializers/time_formats.rb diff --git a/config/initializers/time_formats.rb b/config/initializers/time_formats.rb deleted file mode 100644 index 7f2dfc8ef..000000000 --- a/config/initializers/time_formats.rb +++ /dev/null @@ -1,5 +0,0 @@ -# frozen_string_literal: true - -Time::DATE_FORMATS[:pretty] = ->(time) { time.strftime("%a, %b %e at %l:%M") + time.strftime("%p").downcase } -Date::DATE_FORMATS[:default] = "%d %b %Y" -Time::DATE_FORMATS[:default] = "%a, %b %e at %l:%M %p" diff --git a/config/locales/koi.en.yml b/config/locales/koi.en.yml index 4d9717334..c5abfbe3f 100644 --- a/config/locales/koi.en.yml +++ b/config/locales/koi.en.yml @@ -1,11 +1,9 @@ en: time: formats: - default: "%Y-%m-%dT%H:%M:%S.%L%z" display: "%e %B %Y, %l:%M%P" date: formats: - default: "%Y-%m-%d" display: "%e %B %Y" koi: labels: