Revision fde12b1d
Added by Marek Hulán over 6 years ago
app/helpers/dashboard_helper.rb | ||
---|---|---|
|
||
def dashboard_actions
|
||
[
|
||
_("Generated at %s") % Time.zone.now.to_s(:short),
|
||
_("Generated at %s") % date_time_absolute(Time.zone.now),
|
||
select_action_button(
|
||
_('Manage'), {},
|
||
link_to_function(_('Save positions'), "save_position('#{save_positions_widgets_path}')"),
|
Also available in: Unified diff
Fixes #19047 - unify date formats
This introduces two new helpers for printing date in absolute and
relative format. Helper for absolute accepts also a parameter to choose
between long and short variant. The long one includes the year. The date
also has a title so you see the other format after hovering mouse
cursor.
(cherry picked from commit d738d2c03a58e52b5e04d056ca259925ae71e057)