date conversion to linux time

  • Hi folks,
    I want to set the wakeup time using rtcwake but something gets wrong with the conversion to linux timestamp.
    System and hardware clock settings are correct, but if I use utc time for rtcwake the result of the date conversion is two hours too early, with option -l the result is two hours too late:


    root@HURRICANE:~# date
    Mi 10. Jun 00:40:59 CEST 2015
    root@HURRICANE:~# hwclock
    Mi 10 Jun 2015 00:41:05 CEST -0.489285 seconds
    root@HURRICANE:~# rtcwake -n -m mem -t $(date -d '20150610 02:15' +%s) -l
    rtcwake: wakeup from "mem" using /dev/rtc0 at Wed Jun 10 04:15:00 2015
    root@HURRICANE:~# rtcwake -n -m mem -t $(date -d '20150610 02:15' +%s) -u
    rtcwake: wakeup from "mem" using /dev/rtc0 at Wed Jun 10 00:15:00 2015


    Can somebody explain that?


    btw: Is it possible that if a wake alarm time is initiated, the omv service autoshutdown don't work properly any more?
    Thx, Q.

    • Offizieller Beitrag

    Is your timezone +0200 or -0200?

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!