impress/config/initializers/date_formats.rb
Emi Matchu 0e32eb5d8f Hide duplicate timestamps on item trades page
Just a small visual cleanup because I happened to click on item trades
today! We don't need to repeat "This Week" a million times. Just output
it for the first row, then hide it for the following. (We still include
it in screen reader output for semantic clarity; this is just a visual
cleanup.)
2025-06-22 10:43:48 -07:00

6 lines
224 B
Ruby

Date::DATE_FORMATS[:month_and_day] = "%B %e"
Date::DATE_FORMATS[:month_and_year] = "%b %Y"
Time::DATE_FORMATS[:long_nst] = lambda { |time|
time.in_time_zone("Pacific Time (US & Canada)").
to_formatted_s(:long) + " NST"
}