Skip to content

Commit

Permalink
Custom field date times now show year.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyken committed Dec 5, 2012
1 parent c94c2a4 commit 9168f26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/fields/field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def render(value)
when 'date'
value && value.strftime(I18n.t("date.formats.mmddyy"))
when 'datetime'
value && value.strftime(I18n.t("time.formats.mmddhhss"))
value && value.strftime(I18n.t("time.formats.mmddyyyy_hhmm"))
when 'check_boxes'
value.select(&:present?).in_groups_of(2, false).map {|g| g.join(', ')}.join("<br />".html_safe) if Array === value
else
Expand Down
2 changes: 1 addition & 1 deletion config/locales/en-GB_fat_free_crm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ en-GB:
time:
formats:
mmddhhss: "%e %b at %l:%M%p"
mmddyyyy_hhmm: "%Y-%m-%d %H:%M"
mmddyyyy_hhmm: "%e %b %Y at %l:%M%p"

# will_paginate translations copied from 'en-US'
#----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion config/locales/en-US_fat_free_crm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ en-US:
time:
formats:
mmddhhss: "%b %e at %l:%M%p"
mmddyyyy_hhmm: "%m/%d/%Y %l:%M %p"
mmddyyyy_hhmm: "%e %b %Y at %l:%M%p"

# will_paginate translations copied for 'en-US'
#----------------------------------------------------------------------------
Expand Down

0 comments on commit 9168f26

Please sign in to comment.