Date of birth in profile changed by tz

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
kelsangpagchen
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Thu Mar 19, 2009 2:03 pm

Date of birth in profile changed by tz

Postby kelsangpagchen » Thu Jan 13, 2011 4:20 pm

Hi,
I played around with the new profile plugin and discovered a bug with the date of birth field.

My server and user are both in -5 time zone.
When I enter a date of birth, let's say March 6 1970 and save.
In frontend profile the date shown is March 5 1970.
Problem comes from JHTML::date checking for timezone adjustment before showing the result.

If you edit the profile, you'll get the good date as it is saved in the database correctly.

This problem happens a lot with date manipulation in many php application.
There should be a distinction between date field and date+time field. Sometimes we just want a date with no timezone correction as it is the case here.

I don't find the bug report pages, sorry to post here in the forum.
cheers

PS Overall I love what I see within the new 1.6 version -> GREAT THANKS TO ALL CONTRIBUTORS !

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7985
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: Date of birth in profile changed by tz

Postby mcsmom » Thu Jan 13, 2011 5:51 pm

Would you report that in the tracker please?
http://joomlacode.org/gf/project/joomla ... er_id=8103
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

kelsangpagchen
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Thu Mar 19, 2009 2:03 pm

Re: Date of birth in profile changed by tz

Postby kelsangpagchen » Thu Jan 13, 2011 7:10 pm

I just did.
Thanks for the link.


Return to “General Questions/New to Joomla! 2.5”

Who is online

Users browsing this forum: pintobuck and 9 guests