Change Server Time Zone

Results 1 to 10 of 10
  1. #1
    Enthusiast FhadheL is offline
    MemberRank
    Mar 2011 Join Date
    IndonesiaLocation
    44Posts

    note Change Server Time Zone

    ok, first i know how to change server time using hrace009 vbox image, here is the command :
    Quote Originally Posted by albertomarlboro View Post
    To set date/hora :

    date MMDDhhmmYYYY

    Example : June 29 2006 , 15h30 :

    date 062915302006
    with that command, server time is has been changed, but how to change Time Zone on server (like GMT+7 or GMT+8) ??

    some1 know how to change it ??


  2. #2
    Black Magic Development das7002 is offline
    MemberRank
    Apr 2010 Join Date
    EarthLocation
    2,188Posts

    Re: Change Server Time Zone

    Nothing configures the 'timezone' on Unix based operating systems the hardware clock is ALWAYS UTC but the user time which is used for everything the system actually does is local time...

    As long as the hwclock shows UTC you can use that command to set the time just fine...

    (or if using something debian based you can be lazy and let dpkg-reconfigure handle it all, `dpkg-reconfigure tzdata`)

  3. #3
    Enthusiast FhadheL is offline
    MemberRank
    Mar 2011 Join Date
    IndonesiaLocation
    44Posts

    Re: Change Server Time Zone

    owh, how to change UTC time ?

  4. #4
    Angelemu founder tbnanubis is offline
    MemberRank
    Mar 2011 Join Date
    Unicorn ForestLocation
    527Posts

    Re: Change Server Time Zone

    For me using UTC always fucked the PW Server when encountering DST Changes.
    In debian there are 2 places to look when you want to change your timezone:
    Quote Originally Posted by /etc/default/rcS
    UTC=no
    this tells your system that your hardwareclock does NOT use UTC
    dpkg-reconfigure tzdata
    this sets your system timezone in debian

    after you changed this stuff, and set the time with date/hwclock you need to reboot the system for the times to apply to your PW server.


    The utc=no is needed in some cases, when your host has preinstalled the system with weird settings. E.g. Hetzner tends to set your hwclock to CEST, but leaves the setting UTC=yes active which fucks your server's scheduled events as soon as you start modifying your clock.

    Usually your system should be fine, as long as your settings are consistent and you reboot the server after each clock adjustment.
    Last edited by tbnanubis; 26-04-11 at 10:29 AM.

  5. #5
    Enthusiast FhadheL is offline
    MemberRank
    Mar 2011 Join Date
    IndonesiaLocation
    44Posts

    Re: Change Server Time Zone

    allright, but when i type hwclock in terminal i got this :
    Tue 26 April, 2011 03:43:45 PM WIT -7646670 second

    the problem is how to change "WIT" to "WIB" bcz WIB is my time in my country at my home

    UTC+7 "WIB" "Waktu Indonesia Barat" "Western Indonesia Standard Time"
    but,
    UTC+9 "WIT" "Waktu Indonesia Timur" "Eastern Indonesia Standard Time"

    i use hrace009 vbox image server


    nb : sorry for my bad english
    Last edited by FhadheL; 26-04-11 at 10:49 AM.

  6. #6
    Robb rbb138 is offline
    MemberRank
    Jan 2009 Join Date
    London, EnglandLocation
    1,241Posts

    Re: Change Server Time Zone

    Perfect World servers really hate timezone changes.

  7. #7
    Black Magic Development das7002 is offline
    MemberRank
    Apr 2010 Join Date
    EarthLocation
    2,188Posts

    Re: Change Server Time Zone

    Quote Originally Posted by rbb138 View Post
    Perfect World servers really hate timezone changes.
    +1 to this, it is by far the most poorly written for handling time changes Ive ever seen...

  8. #8
    Enthusiast FhadheL is offline
    MemberRank
    Mar 2011 Join Date
    IndonesiaLocation
    44Posts

    Re: Change Server Time Zone

    more detail please

  9. #9
    Enthusiast soulmate is offline
    MemberRank
    Sep 2010 Join Date
    39Posts

    Re: Change Server Time Zone

    A while back I had the same problem I found was the solution q to change the operating system server base my schedule to coincide with the server.
    I did it for console these are the steps:
    We can change the system time and when the computer's BIOS.

    To change the system time, use the command date, but we must keep in mind that when you reboot the computer, it will take time for the BIOS and we will replace the previous hour, to avoid this change also when the BIOS hwclock command as follows:

    We assume that we want to put date: 25-Feb-2000 and 16:25 hours.
    We will do this as root:

    # Date - set "25/02/2011 16:25"
    Fri Feb 25 16:25:00 CET 2011

    Now make the same change to update the BIOS date.

    # Hwclock - set - date = "02/25/2000 16:25"

    To check type:

    # hwclock
    Fri Feb 25 16:25:06 2000 -0.010586 seconds

    Hope will

  10. #10
    Angelemu founder tbnanubis is offline
    MemberRank
    Mar 2011 Join Date
    Unicorn ForestLocation
    527Posts

    Re: Change Server Time Zone

    instead of setting the hwclock seperately, you can use hwclock -systohc to have it transfered exactly with very low delay.
    OT Necro..



Advertisement