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.)
6 lines
224 B
Ruby
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"
|
|
}
|