Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Cron ignoriert die Zeitumstellung Sommer-/Winterzeit

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Cron ignoriert die Zeitumstellung Sommer-/Winterzeit

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @miki last edited by

      @miki

      Das Skript fragt auch ein paar Parameter bzgl. der Zeit ab:

      https://forum.iobroker.net/topic/59549/iob-diag-skript

      Kannst ja mal schauen ob da was erhellendes ums Eck kommt.

      1 Reply Last reply Reply Quote 0
      • M
        miki @Homoran last edited by

        @homoran :
        Ich weiss, dass das Problem im Forum nicht zu finden ist, das macht mich ja so irre.

        Hier ein aktueller Auszug der Console, ich meine die Zeitzone stimmt:

        pi@iobroker-pi:~ $ timedatectl status
                       Local time: Mon 2022-11-14 15:00:19 CET
                   Universal time: Mon 2022-11-14 14:00:19 UTC
                         RTC time: n/a
                        Time zone: Europe/Berlin (CET, +0100)
        System clock synchronized: yes
                      NTP service: active
                  RTC in local TZ: no
        
        
        paul53 Homoran Thomas Braun 3 Replies Last reply Reply Quote 0
        • paul53
          paul53 @miki last edited by paul53

          @miki sagte: ich meine die Zeitzone stimmt:

          Sicher kann man erst sein, wenn dieses Testskript im Log rechts die richtige Uhrzeit ausgibt:

          log(formatDate(new Date(), 'hh:mm:ss'));
          

          Läuft ioBroker in einer VM?

          1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @miki last edited by

            @miki sagte in Cron ignoriert die Zeitumstellung Sommer-/Winterzeit:

            ich meine die Zeitzone stimmt:

            jepp!
            allerdings habe ich mir die verlinkte Anleitung nicht angesehen ob da noch was festgezurrt wird

            1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @miki last edited by

              @miki

              echad@chet:~ $ date +%Z
              CET
              echad@chet:~ $ sudo -H -u iobroker date +%Z
              CET
              echad@chet:~ $
              

              sollte so aussehen.

              M 1 Reply Last reply Reply Quote 0
              • M
                miki @Thomas Braun last edited by

                @thomas-braun :

                pi@iobroker-pi:~ $ date +%Z
                CET
                pi@iobroker-pi:~ $ sudo -H -u iobroker date +%Z
                CET
                pi@iobroker-pi:~ $
                

                @paul53 :
                Keine VM, nativ auf der HW.
                Für Dein Script bin ich zu doof, bin leider so ein Blockly-Bastler und nicht in nativem JS bewandert. Wenn ich Deinen Code ohne weiteres in JS kopiere läuft es nicht. Vielleicht kannst Du für mich noch etwas ausholen...

                Danke an alle bisher! lgm

                paul53 1 Reply Last reply Reply Quote 0
                • paul53
                  paul53 @miki last edited by paul53

                  @miki sagte: Blockly-Bastler

                  Bild_2022-11-14_152532109.png

                  Skript starten!

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    miki @paul53 last edited by

                    @paul53 : Danke & s.u., die Zeit stimmt...

                    javascript.0	2022-11-14 15:27:58.654	info	(1102) script.js.common.Time-Test: registered 0 subscriptions and 0 schedules
                    javascript.0	2022-11-14 15:27:58.653	info	(1102) script.js.common.Time-Test: 15:27:58
                    javascript.0	2022-11-14 15:27:58.593	info	(1102) Start javascript script.js.common.Time-Test
                    javascript.0	2022-11-14 15:27:52.390	info	(1102) Stop script script.js.common.Time-Test
                    
                    paul53 1 Reply Last reply Reply Quote 0
                    • paul53
                      paul53 @miki last edited by

                      @miki sagte: die Zeit stimmt...

                      Dann müssen auch die CRON-Trigger zur richtigen Zeit auslösen.

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        miki @paul53 last edited by

                        @paul53 :

                        Sehe ich ja auch so, macht er aber nicht. Nach jeder Zeitumstellung um genau 1h falsch. Um die letzte Zeitumstellung ist ja jetzt ein paar Tage her und er macht es immer noch. Und nicht nur ein Script, sondern alle.

                        N 1 Reply Last reply Reply Quote 0
                        • N
                          Nordischerjung @miki last edited by

                          @miki Moin, zeig doch mal so ein CRON, der nicht richtig funktioniert

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            miki @Nordischerjung last edited by

                            @nordischerjung

                            7447584a-f3b4-4afd-9dad-014a95247ef6-image.png

                            3302544c-c737-44ca-a188-e07a8d417c86-image.png

                            Das mal als Beispiel, gleiches gibt es noch für alle anderen Wochentage, die sehen analog aus und machen das jetzt um 0:59h aktuell.
                            Ein anderes Script soll 15h laufen, das läuft jetzt 16h.

                            lgm

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post

                            Support us

                            ioBroker
                            Community Adapters
                            Donate
                            FAQ Cloud / IOT
                            HowTo: Node.js-Update
                            HowTo: Backup/Restore
                            Downloads
                            BLOG

                            423
                            Online

                            32.0k
                            Users

                            80.4k
                            Topics

                            1.3m
                            Posts

                            5
                            14
                            828
                            Loading More Posts
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes
                            Reply
                            • Reply as topic
                            Log in to reply
                            Community
                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                            The ioBroker Community 2014-2023
                            logo