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.

    NANOXIA Deep Silence 100, Intel Xeon E5 2680 V4 on C612 BHKD-2011M, 64GB 2133 DDR4, 36TB SnapRAID, OMV 7.x, Nextcloud, Plex-Mediaserver

    • Official Post

    Is your timezone +0200 or -0200?

    omv 8.1.1-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.7 | compose 8.1.5 | cterm 8.0 | borgbackup 8.1.7 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1.1


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


    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!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!