Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 8 of 8

This is a discussion on Changing date in the VPS & Dedicated forum
Occasionaly, I need to change system date back and forth. Of course date -s doesn't work . AFAIK using zic and timezones > /etc/localtime could ...

  1. #1
    JPC Member
    Join Date
    Oct 2005
    Posts
    7

    Changing date

    Occasionaly, I need to change system date back and forth.
    Of course date -s doesn't work . AFAIK using zic and timezones > /etc/localtime could help up to (almost) 24 hours, but dates are out of range.
    Is there any way to change date on a VPS?

  2. #2
    Rob
    Rob is offline
    I am the one and only Rob's Avatar
    Join Date
    Nov 2005
    Location
    It varies
    Posts
    425
    what control panel are you using?

    If cPanel it can be changed by going into Server Time in the Server Configuration section.
    Rob



  3. #3
    JPC Member
    Join Date
    Oct 2005
    Posts
    7
    No control panel Rob.
    Just plain old ssh.

  4. #4
    JPC Support Smithjp's Avatar
    Join Date
    Jun 2006
    Location
    Planet Earth
    Posts
    166
    You cannot change system time in a VPS because all VPSs on the hardware node have the same system time. However, it is possible to change the default system timezone inside a VPS, for example, by replacing /etc/localtime with the file from /usr/share/zoneinfo which contains a description of your timezone.

    It may be the similar case with date too.

  5. #5
    JPC Member
    Join Date
    Oct 2005
    Posts
    7
    Quote Originally Posted by JPC-Smith View Post
    It may be the similar case with date too.
    Thanks Smith.
    I have no idea how to do it.

    According to zic:
    Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S

    So I made 'customtime' file with the following:
    Rule CT 1981 2030 - Jan 27 0:01 -77:00 D

    Unfortunatelly 'SAVE' does not accept anything above (-)24:00, in this case -77:00:
    # zic customtime
    "customtime", line 1: invalid saved time

  6. #6
    JPC Member
    Join Date
    Oct 2005
    Posts
    7
    JPC_Smith,

    Could you enable anything like "Time Drift" like some Xen versions can:
    http://bliki.rimuhosting.com/exec/di...2&newVersion=3

  7. #7
    JPC Member
    Join Date
    Oct 2005
    Posts
    7
    Actually the xen code is against "time drift" (my bad wording) and it goes something like this:

    set independent_wallclock
    echo 1 > /proc/sys/xen/independent_wallclock

    Is there really no way to do it here?

  8. #8
    CTO JPC-Masood's Avatar
    Join Date
    Aug 2002
    Location
    Jaguar Servers
    Posts
    2,070
    I do not think virtuozzo supports that. Its a different technology.

    Masood N. | Chief Technical Officer
    JaguarPC.com


    Helpful Links
    Knowledge Base | Network Status

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •