How to set default time zone in Java and control the way date are stored on DB?
问题 I've the following problem, that showed up when I installed my webapp's war on a virtual linux server. Here it is: my server system time seems correct, in fact typing date on shell comes out with: Mon Apr 11 11:47:30 CEST 2011 which is my "wall clock time". Even mysql works fine, if I do select now(), I get: mysql> select now() -> ; +---------------------+ | now() | +---------------------+ | 2011-04-11 11:52:57 | +---------------------+ 1 row in set (0.01 sec) But my application (Spring