Page 1 of 1

Date of birth in profile changed by tz

Posted: Thu Jan 13, 2011 4:20 pm
by kelsangpagchen
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 !

Re: Date of birth in profile changed by tz

Posted: Thu Jan 13, 2011 5:51 pm
by mcsmom
Would you report that in the tracker please?
http://joomlacode.org/gf/project/joomla ... er_id=8103

Re: Date of birth in profile changed by tz

Posted: Thu Jan 13, 2011 7:10 pm
by kelsangpagchen
I just did.
Thanks for the link.