Hi,
I was having some problems with getting the right time in Tomcat and Orbeon so I added: set JAVA_OPTS=-Duser.timezone=Australia/Sydney to catalina.bat and now Tomcat recognizes the time properly. However when I use functions like current-dateTime() (in XSL) or now() (in Xforms) the time comes one hour ahead. I believe this problem is due to Daylight savings. Any ideas on what I should do? Cheers, Naman -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Naman,
Do you see the same problem calling new Date().toString()? In other words, I am wondering if this problem is surfacing at the XPath level, or at the Java level. Alex On 3/4/07, [hidden email] <[hidden email]> wrote: > Hi, > > I was having some problems with getting the right time in Tomcat and Orbeon so I added: > > set JAVA_OPTS=-Duser.timezone=Australia/Sydney > > to catalina.bat and now Tomcat recognizes the time properly. However when I use functions like current-dateTime() (in XSL) or now() (in Xforms) the time comes one hour ahead. I believe this problem is due to Daylight savings. > > Any ideas on what I should do? > > Cheers, > Naman > > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > -- Orbeon Forms - Web 2.0 Forms for the Enterprise http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Alex,
I did a basic java program and the date showed up fine. Also tomcat logs are showing the right time and as is liferay. Only orbeon is 1 hour off, probably dude to Daylight savings Naman -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro Vernet Sent: Thursday, 8 March 2007 10:06 AM To: [hidden email] Subject: Re: [ops-users] 1 hour offset in Timezone Naman, Do you see the same problem calling new Date().toString()? In other words, I am wondering if this problem is surfacing at the XPath level, or at the Java level. Alex On 3/4/07, [hidden email] <[hidden email]> wrote: > Hi, > > I was having some problems with getting the right time in Tomcat and Orbeon so I added: > > set JAVA_OPTS=-Duser.timezone=Australia/Sydney > > to catalina.bat and now Tomcat recognizes the time properly. However when I use functions like current-dateTime() (in XSL) or now() (in Xforms) the time comes one hour ahead. I believe this problem is due to Daylight savings. > > Any ideas on what I should do? > > Cheers, > Naman > > > > -- > You receive this message as a subscriber of the > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: > http://www.objectweb.org/wws > > -- Orbeon Forms - Web 2.0 Forms for the Enterprise http://www.orbeon.com/ NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Naman,
OK - The next thing you might want to try is to reproduce the problem with a stylesheet that uses now(), calling that stylesheet from the command line using Saxon directly. See the page below for documentation on how to run Saxon from the command line. (You might want to download the Saxon distribution separately so using it from the command line works out of the box, instead of using the Saxon jar files under WEB-INF/lib.) http://www.saxonica.com/documentation/using-xsl/commandline.html Alex On 3/7/07, Naman Joshi <[hidden email]> wrote: > Alex, > > I did a basic java program and the date showed up fine. Also tomcat logs > are showing the right time and as is liferay. Only orbeon is 1 hour off, > probably dude to Daylight savings > > Naman > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of > Alessandro Vernet > Sent: Thursday, 8 March 2007 10:06 AM > To: [hidden email] > Subject: Re: [ops-users] 1 hour offset in Timezone > > Naman, > > Do you see the same problem calling new Date().toString()? In other > words, I am wondering if this problem is surfacing at the XPath level, > or at the Java level. > > Alex > > On 3/4/07, [hidden email] <[hidden email]> wrote: > > Hi, > > > > I was having some problems with getting the right time in Tomcat and > Orbeon so I added: > > > > set JAVA_OPTS=-Duser.timezone=Australia/Sydney > > > > to catalina.bat and now Tomcat recognizes the time properly. However > when I use functions like current-dateTime() (in XSL) or now() (in > Xforms) the time comes one hour ahead. I believe this problem is due to > Daylight savings. > > > > Any ideas on what I should do? > > > > Cheers, > > Naman > > > > > > > > -- > > You receive this message as a subscriber of the > [hidden email] mailing list. > > To unsubscribe: mailto:[hidden email] > > For general help: mailto:[hidden email]?subject=help > > ObjectWeb mailing lists service home page: > > http://www.objectweb.org/wws > > > > > > > -- > Orbeon Forms - Web 2.0 Forms for the Enterprise http://www.orbeon.com/ > > > NOTICE > This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. > > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > -- Orbeon Forms - Web 2.0 Forms for the Enterprise http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Alex,
I have similiar issue. I extracted just the date from now() and use it in part of document names and noticed that when I was searching for documents could not find it because the date was one day ahead once 8pm rolled around. Just put the now() function to see the time and it is 4 hours ahead? What setting would change the timezone? Thanks. |
Administrator
|
Brian,
Would using current-dateTime() solve the problem? It returns the current time with a timezone. E.g. right now, here in Pacific time it is is: 2010-06-25T17:24:07.467-07:00. This is 5:24 pm, local time, but because there is a timezone (-7), you should be fine when comparing it with other xs:dateTime, even if they have a different timezone. Alex On Mon, Jun 21, 2010 at 11:21 AM, bsteuhl <[hidden email]> wrote: > > Alex, > > I have similiar issue. I extracted just the date from now() and use it in > part of document names and noticed that when I was searching for documents > could not find it because the date was one day ahead once 8pm rolled around. > Just put the now() function to see the time and it is 4 hours ahead? What > setting would change the timezone? Thanks. > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/1-hour-offset-in-Timezone-tp33008p2263107.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |