Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

system time

  • 15-11-2001 10:53am
    #1
    Registered Users, Registered Users 2 Posts: 6,265 ✭✭✭


    for some reason our server thinks it should be on MET time.
    i would like it to be GMT

    ideas?
    i know this is easy - but all brain function has died today

    MiCr0

    system:solaris8 running on sparc


Comments

  • Registered Users, Registered Users 2 Posts: 6,265 ✭✭✭MiCr0


    bash-2.03# cat /etc/TIMEZONE
    # @(#)init.dfl 1.5 99/05/26
    #
    # This file is /etc/default/init. /etc/TIMEZONE is a symlink to this file.
    # This file looks like a shell script, but it is not. To maintain
    # compatibility with old versions of /etc/TIMEZONE, some shell constructs
    # (i.e., export commands) are allowed in this file, but are ignored.
    #
    # Lines of this file should be of the form VAR=value, where VAR is one of
    # TZ, LANG, CMASK, or any of the LC_* environment variables.
    #
    TZ=GMT
    CMASK=022
    LC_COLLATE=en_US.ISO8859-1
    LC_CTYPE=en_US.ISO8859-1
    LC_MESSAGES=C
    LC_MONETARY=en_US.ISO8859-1
    LC_NUMERIC=en_US.ISO8859-1
    LC_TIME=en_US.ISO8859-1

    bash-2.03# date
    Thu Nov 15 14:08:45 MET 2001


  • Registered Users, Registered Users 2 Posts: 16,414 ✭✭✭✭Trojan


    # Lines of this file should be of the form VAR=value, where VAR is one of
    # TZ, LANG, CMASK, or any of the LC_* environment variables.
    #
    TZ=GB-Eire
    CMASK=022
    LC_COLLATE=en_IE.ISO8859-1
    LC_CTYPE=en_IE.ISO8859-1
    LC_MESSAGES=C
    LC_MONETARY=en_IE.ISO8859-1
    LC_NUMERIC=en_IE.ISO8859-1
    LC_TIME=en_IE.ISO8859-1

    # date
    Thursday November 15 19:32:35 GMT 2001

    # ls -l /etc/TIMEZONE
    lrwxrwxrwx 1 root root 14 Jul 17 11:58 /etc/TIMEZONE -> ./default/init


  • Closed Accounts Posts: 296 ✭✭moist


    Originally posted by MiCr0


    TZ=GMT

    Thu Nov 15 14:08:45 MET 2001

    Your hardly overriding that in your shell or something ?

    fred (~) $ echo $TZ
    Eire
    fred (~) $ date
    Sun Nov 18 03:46:58 GMT 2001
    fred (~) $ TZ=EST
    fred (~) $ date
    Sat Nov 17 22:47:08 EST 2001


  • Registered Users, Registered Users 2 Posts: 1,862 ✭✭✭flamegrill


    "export TZ=GMT"
    just stick that in ur .profile

    aswell as "set TZ=GMT in /etc/TIMEZONE". when ur server reboots the system timezone will become GMT.


  • Registered Users, Registered Users 2 Posts: 6,265 ✭✭✭MiCr0


    server reboot????
    this is a unix system here
    i'll give them a shot
    also is there any way to do this with out a reboot
    this system can't go down


  • Advertisement
Advertisement