-
1. Re: rich:calendar and Seam produce unsual problem
ilya_shaikovsky Apr 14, 2008 10:05 AM (in response to terryb)could you please share full war example with us?
-
2. Re: rich:calendar and Seam produce unsual problem
terryb Apr 15, 2008 4:34 AM (in response to terryb)I think this may be related to timezone issue? though I am not sure how to fix it.
If I change rich:Calendar datePattern="dd-MM-yyyy HH:mm" and select a date from the calendar it shows dates as eg, "01-04-1990 12:00". I thought it should show time as 00:00 since hour format is HH.
Now once I commit the xhtml page and page is refreshed the date time changes to ""01-04-1990 08:00".
I have tried putting timeZone="#{timeZone}" in rich:calendar tag; but it didn't change anything. -
3. Re: rich:calendar and Seam produce unsual problem
terryb Apr 15, 2008 9:40 PM (in response to terryb)If I have rich:calendar with datePattern="dd-MM-yyyy hh:mm a"; and select a date from the calendar it shows "01-04-2008 12:00 PM".
Is this right? shouldn't it be AM? -
4. Re: rich:calendar and Seam produce unsual problem
sergeysmirnov Apr 15, 2008 10:19 PM (in response to terryb)if time is not specified, it points right in the middle of the day, but not in the beginning. I.e. the noon (12:00PM)
-
5. Re: rich:calendar and Seam produce unsual problem
terryb Apr 15, 2008 10:25 PM (in response to terryb)Sergey, for my understanding. why is it done this way? when databases, eg SQL Server insert midnight for time if only date is inserted.
-
6. Re: rich:calendar and Seam produce unsual problem
supernovasoftware.com Apr 16, 2008 1:24 PM (in response to terryb)I would prefer the midnight setting.
If I search by date>=the date selected it must be set to midnight or half the day will not show up. -
7. Re: rich:calendar and Seam produce unsual problem
terryb Apr 16, 2008 9:26 PM (in response to terryb)I certainly agree it should be midnight. It will be good to know whether it is intentional, and so why? or if it is some oversight and may be resolved in coming release?
Furthermore, I still haven't worked out why after my page is committed and refreshed the date in calendar field changes to one day earlier. I do nothing no conversions of manipulation in my xhtml page or backing bean. -
8. Re: rich:calendar and Seam produce unsual problem
nbelaevski Apr 17, 2008 1:00 PM (in response to terryb)Hello,
We've created RFC for that: http://jira.jboss.com/jira/browse/RF-3105 -
9. Re: rich:calendar and Seam produce unsual problem
jgilbert Apr 17, 2008 6:26 PM (in response to terryb)i am seeing the same "minus one day" behavior. another interesting thing is that if i refresh the page i get the right date back.
has anyone figured out how to make this work or do i need to switch back to my old trusty calendar script. -
10. Re: rich:calendar and Seam produce unsual problem
jgilbert Apr 17, 2008 6:55 PM (in response to terryb)Here is something interesting.
I have been getting my pattern from a message bundle like this.datePattern="#{msg.DatePattern}"
When I switch to this, which is the same value in the bundle, then it works.datePattern="MM/dd/yyyy"