This content has been marked as final.
Show 5 replies
-
1. Re: s:convertDateTime subtract 1 day
rengar Mar 7, 2007 6:30 AM (in response to rengar)I use Jboss Seam 1.2.0.PATCH1
-
2. Re: s:convertDateTime subtract 1 day
shane.bryzak Mar 7, 2007 8:17 AM (in response to rengar)This probably has nothing to do with it, but out of interest which version of Java are you using?
-
3. Re: s:convertDateTime subtract 1 day
rengar Mar 7, 2007 9:04 AM (in response to rengar)I use "Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode)" and Jboss 4.0.5.
-
4. Re: s:convertDateTime subtract 1 day
atao Mar 7, 2007 10:19 AM (in response to rengar)It's a known issue with dateConverter. By default GMT is used. If your server isn't in GMT+1, then... the first day of a month can become the last day of the previous month!
To avoid this:
- fixe timezone explicitly
- use joda library
- use a converter as the one you tested
- ...
Pierre -
5. Re: s:convertDateTime subtract 1 day
atao Mar 7, 2007 10:29 AM (in response to rengar)
If your server is in GMT+1
indeed
Sorry for the noise.