cancel
Showing results for 
Search instead for 
Did you mean: 

Config the timezone of the Created Date and Modified Date

matafagafo
Champ in-the-making
Champ in-the-making
Hello, how can I configure the Web Client to show the dates of the files in the user timezone ?
    To me they are displaied in GMT.
    Thakns.
9 REPLIES 9

kevinr
Star Contributor
Star Contributor
Hello,

You need to localise the properties files for your locale - see the topics in Language Packs for info on this and examples in various languages.

The file you'll need to localise is "webclient.properties" and you would modify this section appropriately:

# Date Pattern
date_pattern=MMMM, d yyyy
date_time_pattern=MMMM, d yyyy HH:mm
time_pattern=HH:mm

The patterns use standard java date/time format.
http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html

Hope this helps,

Kevin

matafagafo
Champ in-the-making
Champ in-the-making
Thaks for you quick response !
    But, you don't understend my question (my poor english  Smiley Sad  )
    My problem is the time displayed, it is wrong, my timezone here in Brasil is GMT-3 but all the dates displayed for the files is in GMT, ie:

   Now is 14:28 (BRST) if I add some file to repository now, after the include if I look the file properties with the Web Client, the time displayed is 16:28.

   How I configure this ?

kevinr
Star Contributor
Star Contributor
My applogies! I think you need to check the GMT settings on your Alfresco server machine - the date/time GMT offset comes from Java and that takes it's values from the JVM, so can only guess that your server machine has the wrong settings.

Thanks,

Kevin

pedro
Champ in-the-making
Champ in-the-making
Hi,

you can do any suggest for change it?. The Alfresco Instalation Notes don't say nothing about this.

Regards,

Pedro

steve
Champ in-the-making
Champ in-the-making
Hi,

The time setup on your server is nothing to do with Alfresco.

If your machine is running MS Windows, open the control panel and select 'date & time'. Change the time settings in there.

For Linux see this website for how to set it: http://www.linuxsa.org.au/tips/time.html

pedro
Champ in-the-making
Champ in-the-making
Hi,

I was my computer settings for Date & Time and this indicates as GMT -4 (My Time Zone). When I start Alfresco (Tomcat Bundle), this messages are displayed in the correct time, an example:

11-ene-2006 8:15:27 org.apache.catalina.startup.Catalina start

8:15:27 is a correct hour for my timezone but when I create or Add a Content the time is 12:15:27. This time is GMT 0. Why?

Regards

Pedro

lgr
Champ in-the-making
Champ in-the-making
Hi,

I've got the same issue using linux.

My machine is configured gmt+1 and checkin time is 1 hour before the real time.

Have anyone found a solution for that ?

Laurent.

lgr
Champ in-the-making
Champ in-the-making
Here is the solution :
add  "export TZ=Europe/Paris" in the startup.sh or define a "-Duser.timezone=Europe/Paris" in your JAVA_OPTS.

Of course replace Europe/Paris with your timezone, for example Brazil/East.

Laurent.

jamil
Champ in-the-making
Champ in-the-making
Hello matafagafo,

Your issue is my solution. I need that Date should always display in GMT but in my case time change with the time zone. How did you set in GMT?

Thanks,
Jamil