Convert joda.time.DateTime to java.sql.Date and retain time zone

前端 未结 3 1689
故里飘歌
故里飘歌 2021-02-09 17:01

I have the following scenario:

  • Swing control that returns a Calendar object
  • Intermediate DateTime object that I use to do heavy
3条回答
  •  野性不改
    2021-02-09 18:07

    I guess you may need to add in configuration file TIMEZONE=GMT

    In web application this is defined in web.xml

     javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE true 
    

    Regards

提交回复
热议问题