Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: time only utc ?

  1. #1
    Senior Member
    Join Date
    Jan 2022
    Location
    Switzerland
    Posts
    146

    time only utc ?

    Hello,

    Set CET-1CEST,M3.5.0,M10.5.0/3 into PCP Tweaks.

    After CLI date I always have UTC time. (It should display UTC+2)

    Do I something wrong ?

    Thanks
    Last edited by PaulH; 2022-03-29 at 05:34.

  2. #2
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    9,422
    Quote Originally Posted by PaulH View Post
    Hello,

    Set CET-1CEST,M3.5.0,M10.5.0/3 into PCP Tweaks.

    After CLI date I always have UTC time. (It should display UTC+2)

    Do I something wrong ?

    Thanks
    Did you save the time setting by backing up?

    Sent from my Pixel 3a using Tapatalk

  3. #3
    Senior Member
    Join Date
    Jan 2022
    Location
    Switzerland
    Posts
    146
    Quote Originally Posted by slartibartfast View Post
    Did you save the time setting by backing up?

    Sent from my Pixel 3a using Tapatalk
    of course, after reboot I got always CET-1CEST,M3.5.0,M10.5.0/3

  4. #4
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    9,422
    Quote Originally Posted by PaulH View Post
    of course, after reboot I got always CET-1CEST,M3.5.0,M10.5.0/3
    I have seen conflicting Time Zone strings on different websites, some say
    CET-1CEST
    others say
    CET-1CEST-2
    I have no idea which is correct.

    Sent from my Pixel 3a using Tapatalk

  5. #5
    Senior Member
    Join Date
    Jan 2022
    Location
    Switzerland
    Posts
    146
    Quote Originally Posted by slartibartfast View Post
    I have seen conflicting Time Zone strings on different websites, some say
    CET-1CEST
    others say
    CET-1CEST-2
    I have no idea which is correct.

    Sent from my Pixel 3a using Tapatalk

    Thanks
    I tried with CET-1CEST-2 but with date it's always the unix time...

  6. #6
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    5,981
    Is the time it is showing "correct"?
    For example ...
    at 20:45 today (summertime) in Switzerland is it showing 18:45 UTC (which would be 19:45 UK)?

    If yes - then it looks like the issue is only presentation at the console.

    At the console ... what do you see if you type

    set | grep -i tz
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  7. #7
    Senior Member
    Join Date
    Jan 2022
    Location
    Switzerland
    Posts
    146
    Quote Originally Posted by Paul Webster View Post
    Is the time it is showing "correct"?
    I have only an LCD 4,5' installed, I have not found where is the time displayed. (maybe a plugin?)

    Quote Originally Posted by Paul Webster View Post
    Is the time it is showing "correct"?
    For example ...
    at 20:45 today (summertime) in Switzerland is it showing 18:45 UTC (which would be 19:45 UK)?

    If yes - then it looks like the issue is only presentation at the console.

    At the console ... what do you see if you type

    set | grep -i tz
    Now it 20:58 in Switzerland

    with cli command date:
    1648580310

    1648580310 = GMT: Tuesday 29 March 2022 18:58:30

    Quote Originally Posted by Paul Webster View Post
    At the console ... what do you see if you type

    set | grep -i tz
    set | grep -i tz
    CMDLINE=' coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=800 bcm2708_fb.fbheight=480 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 smsc95xx.macaddr=E4:5F:01:8E:C25 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000 tz=CET-1CEST-2 dwc_otg.fiq_fsm_mask=0xF host=pCP dwc_otg.lpm_enable=0 console=tty1 root=/dev/ram0 rootwait quiet nortc loglevel=3 noembed smsc95xx.turbo_mode=N noswap consoleblank=0 waitusb=2'
    TZ='CET-1CEST-2'
    Last edited by PaulH; 2022-03-29 at 12:10.

  8. #8
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    9,422
    Quote Originally Posted by PaulH View Post
    I have only an LCD 4,5' installed, I have not found where is the time displayed. (maybe a plugin?)



    Now it 20:58 in Switzerland

    with cli command date:
    1648580310

    1648580310 = GMT: Tuesday 29 March 2022 18:58:30



    set | grep -i tz
    CMDLINE=' coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=800 bcm2708_fb.fbheight=480 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 smsc95xx.macaddr=E4:5F:01:8E:C25 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000 tz=CET-1CEST-2 dwc_otg.fiq_fsm_mask=0xF host=pCP dwc_otg.lpm_enable=0 console=tty1 root=/dev/ram0 rootwait quiet nortc loglevel=3 noembed smsc95xx.turbo_mode=N noswap consoleblank=0 waitusb=2'
    TZ='CET-1CEST-2'
    If I use the command
    date
    I don't get a Unix timestamp.

    Sent from my Pixel 3a using Tapatalk

  9. #9
    Senior Member
    Join Date
    Jan 2022
    Location
    Switzerland
    Posts
    146
    Quote Originally Posted by slartibartfast View Post
    If I use the command
    date
    I don't get a Unix timestamp.

    Sent from my Pixel 3a using Tapatalk
    With date on send from my Console I got the right time:
    Tue Mar 29 21:23:02 CEST 2022

    But with CLI command date it's unix time (only?)

  10. #10
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    21,826
    Quote Originally Posted by PaulH View Post
    Now it 20:58 in Switzerland

    with cli command date:
    1648580310

    1648580310 = GMT: Tuesday 29 March 2022 18:58:30
    By cli - do you meant LMS CLI on port 9090 ?
    If so then I think it returns Linux EPOCH time which is time is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT)
    There is no TZ with epoch time.
    Your local TZ setting will change how epoch time is display as local time.

Posting Permissions

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