Results 1 to 2 of 2

Thread: HowTo: Linux modify my timezone to set UTC-3 ( Argentina ) and disable Dst

  1. #1
    Junior Member
    Join Date
    Nov 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default HowTo: Linux modify my timezone to set UTC-3 ( Argentina ) and disable Dst

    I was trying to set the time zone:

    # tzselect
    Please identify a location so that time zone rules can be set correctly.
    Please select a continent or ocean.
    1) Africa
    2) Americas
    3) Antarctica
    4) Arctic Ocean
    5) Asia
    6) Atlantic Ocean
    7) Australia
    8) Europe
    9) Indian Ocean
    10) Pacific Ocean
    11) none - I want to specify the time zone using the Posix TZ format.
    #? 2
    Please select a country.
    1) Anguilla 27) Honduras
    2) Antigua & Barbuda 28) Jamaica
    3) Argentina 29) Martinique
    4) Aruba 30) Mexico
    5) Bahamas 31) Montserrat
    6) Barbados 32) Netherlands Antilles
    7) Belize 33) Nicaragua
    8) Bolivia 34) Panama
    9) Brazil 35) Paraguay
    10) Canada 36) Peru
    11) Cayman Islands 37) Puerto Rico
    12) Chile 38) St Barthelemy
    13) Colombia 39) St Kitts & Nevis
    14) Costa Rica 40) St Lucia
    15) Cuba 41) St Martin (French part)
    16) Dominica 42) St Pierre & Miquelon
    17) Dominican Republic 43) St Vincent
    18) Ecuador 44) Suriname
    19) El Salvador 45) Trinidad & Tobago
    20) French Guiana 46) Turks & Caicos Is
    21) Greenland 47) United States
    22) Grenada 48) Uruguay
    23) Guadeloupe 49) Venezuela
    24) Guatemala 50) Virgin Islands (UK)
    25) Guyana 51) Virgin Islands (US)
    26) Haiti
    #? 3
    Please select one of the following time zone regions.
    1) Buenos Aires (BA, CF)
    2) most locations (CB, CC, CN, ER, FM, MN, SE, SF)
    3) (SA, LP, NQ, RN)
    4) Jujuy (JY)
    5) Tucuman (TM)
    6) Catamarca (CT), Chubut (CH)
    7) La Rioja (LR)
    8) San Juan (SJ)
    9) Mendoza (MZ)
    10) San Luis (SL)
    11) Santa Cruz (SC)
    12) Tierra del Fuego (TF)
    #? 1
    The following information has been given:
    Argentina
    Buenos Aires (BA, CF)
    Therefore TZ='America/Argentina/Buenos_Aires' will be used.
    Local time is now: Fri Nov 25 16:32:53 ARST 2011.
    Universal Time is now: Fri Nov 25 18:32:53 UTC 2011.
    Is the above information OK?
    1) Yes
    2) No
    #? 2


    Local time is ok.
    But this is what I must get:


    Local time is now: Fri Nov 25 16:32:53 ARST 2011.
    Universal Time is now: Fri Nov 25 19:32:53 UTC 2011.


    We are UTC-3 and we are not at DST.


    How can I edit the definition for Buenos_Aires in order to disable DST?:


    # pwd
    /usr/share/zoneinfo/America/Argentina
    # ls -l
    -rw-r--r-- 3 root root 1087 Aug 17 2009 Buenos_Aires
    ...


    One of the functions of this box is file server and when I create a file remotely, if local time is 16:35:34, the file creation time is 15:35:34.


    I think is related to DST.


    Regards,


    Enrique

  2. #2
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,515
    Thanks
    17
    Thanked 815 Times in 511 Posts
    Rep Power
    10

    Default

    How about setting it directly?

    Code:
    rm  /etc/localtime
    cd /etc/
    ln -s /usr/share/zoneinfo/Etc/GMT-3 localtime
    date
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Howto: trace Inode structure and modify it in UNIX
    By Group_Inode in forum Solaris/OpenSolaris
    Replies: 0
    Last Post: 20th October 2011, 08:02 PM
  2. Replies: 7
    Last Post: 24th August 2011, 10:38 AM
  3. [Solved] HOWTO : Disable User private group (UPG) scheme in Enterprise Linux 5.x / 6.x
    By harmandeep in forum CentOS / RHEL / Fedora
    Replies: 4
    Last Post: 1st August 2011, 10:07 PM
  4. PHP Change TZ Timezone on shared Linux server
    By cmebd in forum CentOS / RHEL / Fedora
    Replies: 1
    Last Post: 27th May 2008, 10:07 AM
  5. Replies: 0
    Last Post: 20th December 2006, 03:46 PM

Tags for this Thread

Posting Permissions

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