[xwiki-users] Why the "created" and "last modified" time are wrong?
Hi All, I have installed "XWiki Enterprise 2.2.1.27354" on my laptop, and found that after created or modified the document, the "created" and "last modified" time are wrong! For example, my local time is "2010/04/28, 22:08", but the "date" of the document I just created is "2010/04/28, 09:38". My local time zone is "Beijing, China", UTC/GMT +8 hours. How could I solve this issue? You comments are welcome! Island
Please add following code in some page (xwiki 1.0 syntax) $datetool.get('dd.MM.yyyy HH:mm') Save and check what date is shown in page. If shown time is wrong, then server simply doesn't have correct time and/or time zone. Valdis
Hi All,
I have installed "XWiki Enterprise 2.2.1.27354" on my laptop, and found that after created or modified the document, the "created" and "last modified" time are wrong!
For example, my local time is "2010/04/28, 22:08", but the "date" of the document I just created is "2010/04/28, 09:38". My local time zone is "Beijing, China", UTC/GMT +8 hours.
How could I solve this issue? You comments are welcome!
Island _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Valdis, Thank you for your quickly response. The "$datetool.get('dd.MM.yyyy HH:mm')" still returns wrong time -- 11.5 hours behind my laptop's system time. And I'm quite sure that the shown system time and time zone of my laptop is right. what can i do to debug this issue? On Wed, Apr 28, 2010 at 10:55 PM, Valdis Vītoliņš <[email protected]>wrote:
Please add following code in some page (xwiki 1.0 syntax)
$datetool.get('dd.MM.yyyy HH:mm')
Save and check what date is shown in page.
If shown time is wrong, then server simply doesn't have correct time and/or time zone.
Valdis
Hi All,
I have installed "XWiki Enterprise 2.2.1.27354" on my laptop, and found that after created or modified the document, the "created" and "last modified" time are wrong!
For example, my local time is "2010/04/28, 22:08", but the "date" of the document I just created is "2010/04/28, 09:38". My local time zone is "Beijing, China", UTC/GMT +8 hours.
How could I solve this issue? You comments are welcome!
Island _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On 04/28/2010 06:27 PM, flyisland wrote:
Hi Valdis,
Thank you for your quickly response.
The "$datetool.get('dd.MM.yyyy HH:mm')" still returns wrong time -- 11.5 hours behind my laptop's system time. And I'm quite sure that the shown system time and time zone of my laptop is right.
what can i do to debug this issue?
On Wed, Apr 28, 2010 at 10:55 PM, Valdis Vītoliņš<[email protected]>wrote:
Please add following code in some page (xwiki 1.0 syntax)
$datetool.get('dd.MM.yyyy HH:mm')
Save and check what date is shown in page.
If shown time is wrong, then server simply doesn't have correct time and/or time zone.
Valdis
Hi All,
I have installed "XWiki Enterprise 2.2.1.27354" on my laptop, and found that after created or modified the document, the "created" and "last modified" time are wrong!
For example, my local time is "2010/04/28, 22:08", but the "date" of the document I just created is "2010/04/28, 09:38". My local time zone is "Beijing, China", UTC/GMT +8 hours.
How could I solve this issue? You comments are welcome!
Try putting this in a page, see what you get: {{groovy}} print System.getProperty("user.timezone"); {{/groovy}} If it's not the one you want, then you should edit start_xwiki.sh (or .bat if you're on Windows) and add this to the JAVA_OPTS variable: -Duser.timezone=Asia/Shanghai -- Sergiu Dumitriu http://purl.org/net/sergiu/
Hi Sergiu, the "System.getProperty("user.timezone")" return the correct timezone "Asia/Shanghai", then according to your prompt, I check the start_xwiki.bat file and find the following: set LANG=fr_FR.ISO8859-1 after I changed it to set LANG=zh_CN.utf8 the shown time is correct now! Thank you for your hint! btw: I think this should be a *bug* of xwiki, I'm wondering why set the LANG to "fr_FR.ISO8859-1" by default? On Thu, Apr 29, 2010 at 8:29 AM, Sergiu Dumitriu <[email protected]> wrote:
On 04/28/2010 06:27 PM, flyisland wrote:
Hi Valdis,
Thank you for your quickly response.
The "$datetool.get('dd.MM.yyyy HH:mm')" still returns wrong time -- 11.5 hours behind my laptop's system time. And I'm quite sure that the shown system time and time zone of my laptop is right.
what can i do to debug this issue?
On Wed, Apr 28, 2010 at 10:55 PM, Valdis Vītoliņš<[email protected] wrote:
Please add following code in some page (xwiki 1.0 syntax)
$datetool.get('dd.MM.yyyy HH:mm')
Save and check what date is shown in page.
If shown time is wrong, then server simply doesn't have correct time and/or time zone.
Valdis
Hi All,
I have installed "XWiki Enterprise 2.2.1.27354" on my laptop, and found that after created or modified the document, the "created" and "last modified" time are wrong!
For example, my local time is "2010/04/28, 22:08", but the "date" of the document I just created is "2010/04/28, 09:38". My local time zone is "Beijing, China", UTC/GMT +8 hours.
How could I solve this issue? You comments are welcome!
Try putting this in a page, see what you get:
{{groovy}} print System.getProperty("user.timezone"); {{/groovy}}
If it's not the one you want, then you should edit start_xwiki.sh (or .bat if you're on Windows) and add this to the JAVA_OPTS variable:
-Duser.timezone=Asia/Shanghai
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- ----------------------------------------------------------------------------------------- 空中的一小块陆地 E-mail : [email protected] Blog : http://flyisland.blogbus.com/ Twitter : http://twitter.com/flyisland -----------------------------------------------------------------------------------------
On 04/29/2010 03:31 AM, flyisland wrote:
Hi Sergiu,
the "System.getProperty("user.timezone")" return the correct timezone "Asia/Shanghai", then according to your prompt, I check the start_xwiki.bat file and find the following:
set LANG=fr_FR.ISO8859-1
after I changed it to
set LANG=zh_CN.utf8
the shown time is correct now! Thank you for your hint!
btw: I think this should be a *bug* of xwiki, I'm wondering why set the LANG to "fr_FR.ISO8859-1" by default?
Ah, I thought that it was removed already... Indeed, it should be removed.
On Thu, Apr 29, 2010 at 8:29 AM, Sergiu Dumitriu<[email protected]> wrote:
On 04/28/2010 06:27 PM, flyisland wrote:
Hi Valdis,
Thank you for your quickly response.
The "$datetool.get('dd.MM.yyyy HH:mm')" still returns wrong time -- 11.5 hours behind my laptop's system time. And I'm quite sure that the shown system time and time zone of my laptop is right.
what can i do to debug this issue?
On Wed, Apr 28, 2010 at 10:55 PM, Valdis Vītoliņš<[email protected] wrote:
Please add following code in some page (xwiki 1.0 syntax)
$datetool.get('dd.MM.yyyy HH:mm')
Save and check what date is shown in page.
If shown time is wrong, then server simply doesn't have correct time and/or time zone.
Valdis
Hi All,
I have installed "XWiki Enterprise 2.2.1.27354" on my laptop, and found that after created or modified the document, the "created" and "last modified" time are wrong!
For example, my local time is "2010/04/28, 22:08", but the "date" of the document I just created is "2010/04/28, 09:38". My local time zone is "Beijing, China", UTC/GMT +8 hours.
How could I solve this issue? You comments are welcome!
Try putting this in a page, see what you get:
{{groovy}} print System.getProperty("user.timezone"); {{/groovy}}
If it's not the one you want, then you should edit start_xwiki.sh (or .bat if you're on Windows) and add this to the JAVA_OPTS variable:
-Duser.timezone=Asia/Shanghai
-- Sergiu Dumitriu http://purl.org/net/sergiu/
Same Problem here. My Timezone muste be Germany/Berlin with now +2 hours. But I only get GMT+0. I added -Duser.timezone=Germany/Berlin into my JAVA_OPTS with no change. I´m using another application in my tomcat and there anything is fine ! Are there any ideas ? Thanks André -- View this message in context: http://xwiki.475771.n2.nabble.com/Why-the-created-and-last-modified-time-are... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello, I downloaded xwiki-enterprise-jetty-hsqldb-3.0 but I am facing an problem, that is, whenever some user comment or add docs in any space. In dash board it shows 3 hours ago I tried to find set LANG=fr_FR.ISO8859-1 into start_xwiki.bat but I didnot get anything like that :( I am from India and my system time is UTC+05:30 Please help me out.
andre.j <andre.jost@...> writes:
Same Problem here. My Timezone muste be Germany/Berlin with now +2 hours. But I only get GMT+0. I added -Duser.timezone=Germany/Berlin into my JAVA_OPTS with no change. I´m using another application in my tomcat and there anything is fine !
Are there any ideas ?
Thanks André
Hello, I downloaded xwiki-enterprise-jetty-hsqldb-3.0 but I am facing an problem, that is, whenever some user comment or add docs in any space .. In dash board it shows "3 hours ago" I tried to find set LANG=fr_FR.ISO8859-1 into start_xwiki.bat but I didnot get anything like that :( I am from India and my system time is UTC+05:30 Please help me out.
participants (5)
-
andre.j -
flyisland -
Nishchal Jain -
Sergiu Dumitriu -
Valdis Vītoliņš