Where can I set the time server IP ??
  • Caterpillar
    Caterpillar
    Posts: 33 from 2016/12/29
    Today they switched to DST here, but when I turned on MOS I saw the wrong time set (still winter time).
    My Time zone is correctly set in system prefs (Rome etc). My router (acting as Time Server) has proper time set.
    But where does MOS get its time data ??
    I have enabled in S:user-network-startup SetClockNTP SAVE but... where can I enter the time server IP ?
    I searched thru the system network prefs, time prefs... I could not find a place where I can set it.
    Because I'm sure MOS is NOT making reference to my default gateway to get the correct time, but to somewhere else.
    So ?
    Thanks in advance
  • »26.03.17 - 11:34
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Korni
    Posts: 472 from 2006/2/23
    From: the Planet of ...
    "SetClockNTP ?" will give you all the options, including SERVER, but switching the server will not help. I use a simple script to manually switch between CET/CEST. Of course you need to adjust UTCDIFF to your timezone. WaitX part is needed only if you want to update your time each hour etc.

    S:User-Network-Startup
    Code:
    Run >NIL: SetClockNTP UTCDIFF=120 SAVE


    S:Time_CET
    Code:
    bin:sed -i "s/SetClockNTP UTCDIFF=120 SAVE/SetClockNTP UTCDIFF=60 SAVE/" S:User-Network-Startup
    Break `Status COM WaitX`
    SetClockNTP UTCDIFF=60 SAVE
    Run >NIL: WaitX H=1 L=0 "SetClockNTP UTCDIFF=60 SAVE"


    S:Time_CET
    Code:
    bin:sed -i "s/SetClockNTP UTCDIFF=60 SAVE/SetClockNTP UTCDIFF=120 SAVE/" S:User-Network-Startup
    Break `Status COM WaitX`
    SetClockNTP UTCDIFF=120 SAVE
    Run >NIL: WaitX H=1 L=0 "SetClockNTP UTCDIFF=120 SAVE"
    http://korni.ppa.pl/modkowypaczek/ | My Rifle, My Bunny, and Me
  • »26.03.17 - 12:11
    Profile Visit Website
  • Caterpillar
    Caterpillar
    Posts: 33 from 2016/12/29
    Oh u are using commands from the SDK I see LOL
    Ok thanks that was useful
    I hope automatic DST support will be included in some future MOS releases though, if possible.
  • »26.03.17 - 14:44
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    polluks
    Posts: 803 from 2007/10/23
    From: Gelsenkirchen,...
    Why so complicated?
    setclockntp uses always DST without the NODST option, right?
    north-america.pool.ntp.org:123 europe.pool.ntp.org:123 pool.ntp.org:123

    [ Editiert durch polluks 26.03.2017 - 19:00 ]
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1 17", MorphOS 3.18
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.18
  • »26.03.17 - 16:44
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Korni
    Posts: 472 from 2006/2/23
    From: the Planet of ...
    I don't want to edit my network-user-startup by hand if not needed. It works for me. When MorphOS will have automatic time adjust then I will get rid of it :).
    http://korni.ppa.pl/modkowypaczek/ | My Rifle, My Bunny, and Me
  • »27.03.17 - 06:20
    Profile Visit Website
  • MorphOS Developer
    geit
    Posts: 1049 from 2004/9/23
    The main problem is that time settings are more complicated than it looks.

    Many countries do not have fixed time switch times. They use a dice each year and you need to update some database over and over to keep track of that.

    MorphOS´ SetClockNTP just uses countries with predicable switch times.

    The most important thing is to setup the time zone settings in locale correctly or it will fail.

    Second the network-user-startup is exactly designed for this, so just remove the colon in there and you have proper time settings as far as it goes with the limitations mentioned above.

    About the servers used. There are some servers build in, so SetClockNTP will switch when some network (each of these servers is usually redirected to a random time server), so you don´t need to change the server at all. The server has nothing to do with the DST or the location. Result will always be the same date time.

    [ Edited by geit 27.03.2017 - 09:48 ]
  • »27.03.17 - 07:42
    Profile
  • MorphOS Developer
    CISC
    Posts: 619 from 2005/8/27
    From: the land with ...
    IMPO we should all have gotten rid of this DST nonsense years ago... :P


    - CISC
  • »27.03.17 - 08:08
    Profile