[jboss-user] [JBoss Seam] - Re: Problem with decrementing dates
fhh
do-not-reply at jboss.com
Wed Aug 2 16:21:19 EDT 2006
Well, the problem is not JSF specific. Java (like most programming languages) uses timestamps internally. This is useful for - well, timestamps. But it is not useful for birthdates etc.
For java two persons born on the 1.1.1980 0:01:00.00 GMT+2 and 1.1.1980 0:01:00.00 GMT-2 are not born on the same day eventough the sane part of humanity would say that they are both born on the 1.1.1980.
You can only avoid this by using an artificial timezone (that is utc) when dealing with dates.
The only thing that suprises me is that the datetime converter use the local timezone instead of utc if no timezone is specified. I think this is a bug. Which JSF implementation do you use?
Regards
fhh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962611#3962611
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962611
More information about the jboss-user
mailing list