CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Date representation fields for custom date fields
Pages: [1]

Author Topic: Date representation fields for custom date fields  (Read 1081 times)

wimvanaelst

  • I’m new here
  • *
  • Posts: 20
  • Karma: 1
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 6.2x
Date representation fields for custom date fields
February 02, 2011, 07:08:24 am
I experienced problems when my custom date field representations were chosen different (f.e. 'd MM yyyy') from the 'global site date field representation' (which was dd/mm/yyyy for me).
http://forum.civicrm.org/index.php/topic,18285.0.html

I thought that when changing the date representation of a custom date field, that the representation of the stored date would simple appear in another form (i.e. 31 dec 2009 instead of dec 31 2009). Instead I got dates being 'represented' as '1 jan 1970' or the year of the date becoming 1 or 2 years in the future.

So I was wondering if there is any reason to let the developer choose different date representations in custom date fields, if it only works correctly when the same representation is chosen as the date representation chosen for the global civicrm site.

IMO it seems that there should be a link between the global date representation and the field date representations. When changing one, the other should change too, to avoid the experienced problems.

Unless of course there are reasons for which the programmers have allowed this 'flexibility' (and I guess there will be).  :)
So please consider this just as a suggestion.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Date representation fields for custom date fields
February 03, 2011, 10:25:22 am
I played around w/ this a bit, and I can see that you can set a different date format for a custom field than for your "global" Date Input format. However, I was not able to trigger an issues / errors saving dates in the different formats - even with two custom fields using different formats on the same contact edit form.

If you can recreate an error w/ the date being stored incorrectly, this is a bug. Please see if you can recreate on the public demo and if so post an issue w/ detailed steps on how to recreate the incorrect results.
Protect your investment in CiviCRM by  becoming a Member!

wimvanaelst

  • I’m new here
  • *
  • Posts: 20
  • Karma: 1
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 6.2x
Re: Date representation fields for custom date fields
February 03, 2011, 10:52:32 pm
Thanks for your reply Dave. In the meantime I got the suggestion that this behavior might be due to a missing php parameter, so I'm checking first with my provider (who set up the php settings) if this might be the case, and will keep you posted. If not I'll try to recreate the problem on the public demo.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Date representation fields for custom date fields

This forum was archived on 2017-11-26.