tag:blogger.com,1999:blog-16500981.post6687054700932559016..comments2023-09-28T18:11:20.365+07:00Comments on living in java: Date is displayed wrong-decrease 1 day(JSF)Santosohttp://www.blogger.com/profile/01534214022898572802noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-16500981.post-88772609515265356352013-03-21T22:24:48.704+07:002013-03-21T22:24:48.704+07:00Setting the below context-param solves the problem...Setting the below context-param solves the problem also and much easier.<br /><br /><br /> javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE<br /> true<br /><br /><br /><br />Source: http://stackoverflow.com/questions/2689245/fconvertdatetime-displays-wrong-datePeternoreply@blogger.comtag:blogger.com,1999:blog-16500981.post-86477901258688784112012-08-24T21:20:40.971+07:002012-08-24T21:20:40.971+07:00thank you Santhosh for your solution. The problem ...thank you Santhosh for your solution. The problem had kept me going around code for a while and now it's solved.Pedramhttps://www.blogger.com/profile/01611665264852140996noreply@blogger.comtag:blogger.com,1999:blog-16500981.post-31254152904372790402011-07-06T05:48:50.651+07:002011-07-06T05:48:50.651+07:00Good post Santoso, you opened the way to solve our...Good post Santoso, you opened the way to solve our problem, and Santhosh... Great Tip!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-16500981.post-45210030219159010392010-11-04T22:38:48.883+07:002010-11-04T22:38:48.883+07:00Santhosh !!!
You saved my day too!
Thank you so m...Santhosh !!! <br />You saved my day too!<br />Thank you so much!<br />Hugs from brasil,<br />gisahAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-16500981.post-25631096142277388812010-05-21T23:06:52.310+07:002010-05-21T23:06:52.310+07:00Thanks Santhosh,
I solve my problem with your comm...Thanks Santhosh,<br />I solve my problem with your comments.oriolmartiribashttp://omarti@xip.catnoreply@blogger.comtag:blogger.com,1999:blog-16500981.post-35102896292144044782010-05-12T14:02:24.696+07:002010-05-12T14:02:24.696+07:00hi...
i (still) get confused with this decreasing...hi...<br /><br />i (still) get confused with this decreasing date...<br /><br />in many computers my program seems to work (no decreasing date) but in some computers it decreased 1 day :(<br /><br />i try to change the regional setting too but it won't work...<br /><br />please help me with this thing guyz...<br /><br />* i'm sorry my English wasn't very good :p *Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-16500981.post-70586109145456095242008-08-06T21:05:00.000+07:002008-08-06T21:05:00.000+07:00Thank you, Santhosh!! This fixed my problem. I had...Thank you, Santhosh!! This fixed my problem. I had no idea what I was going to use for a TimeZone String!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-16500981.post-16095865686113094952008-07-30T22:49:00.000+07:002008-07-30T22:49:00.000+07:00Hello All ,I had faced an issue, that convertDateT...Hello All ,<BR/>I had faced an issue, that convertDateTime tag is setting a day less than what user entered. I set the timezone attribute into the default timezone and it resolved the issue.<BR/>JSF page<BR/>---------<BR/>f:convertDateTime pattern="MMddyyyy" timeZone="#{yourBean.timeZone}"<BR/><BR/>Bean<BR/>-----<BR/>TimeZone timeZone = TimeZone.getDefault();<BR/><BR/>Thanks Everyone...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-16500981.post-20736526328332821942008-07-09T00:48:00.000+07:002008-07-09T00:48:00.000+07:00Both timezone and date pattern can be customized b...Both timezone and date pattern can be customized by writing custom date time converter. Read below link for more information.<BR/><BR/>http://venkatsadasivam.wordpress.com/2008/07/08/jsf-default-timezone-and-date-pattern/Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-16500981.post-28640776777953020082007-10-23T14:43:00.000+07:002007-10-23T14:43:00.000+07:00I'm taking the simple approach while allowing a di...I'm taking the simple approach while allowing a different timezone to be used (if required).<BR/><BR/>How do you replace the date format?Santosohttps://www.blogger.com/profile/01534214022898572802noreply@blogger.comtag:blogger.com,1999:blog-16500981.post-23107127453891931172007-10-23T14:00:00.000+07:002007-10-23T14:00:00.000+07:00I replaced date format with my own implementation ...I replaced date format with my own implementation with DEFAULT_TIMEZONE = System.timezone which is right in 90%SammyRulezhttps://www.blogger.com/profile/08420973372498930917noreply@blogger.com