{"action":"closed","issue":{"url":"https://api.github.com/repos/openhab/openhab/issues/1036","labels_url":"https://api.github.com/repos/openhab/openhab/issues/1036/labels{/name}","comments_url":"https://api.github.com/repos/openhab/openhab/issues/1036/comments","events_url":"https://api.github.com/repos/openhab/openhab/issues/1036/events","html_url":"https://github.com/openhab/openhab/issues/1036","id":32732207,"number":1036,"title":"RRD4J error","user":{"login":"petrklus","id":1115667,"avatar_url":"https://avatars.githubusercontent.com/u/1115667?v=3","gravatar_id":"","url":"https://api.github.com/users/petrklus","html_url":"https://github.com/petrklus","followers_url":"https://api.github.com/users/petrklus/followers","following_url":"https://api.github.com/users/petrklus/following{/other_user}","gists_url":"https://api.github.com/users/petrklus/gists{/gist_id}","starred_url":"https://api.github.com/users/petrklus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrklus/subscriptions","organizations_url":"https://api.github.com/users/petrklus/orgs","repos_url":"https://api.github.com/users/petrklus/repos","events_url":"https://api.github.com/users/petrklus/events{/privacy}","received_events_url":"https://api.github.com/users/petrklus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openhab/openhab/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-05-02T22:47:36Z","updated_at":"2015-10-14T20:43:41Z","closed_at":"2015-10-14T20:43:41Z","body":"I realise this is probably a low priority, but this has happened to me right at midnight. Is there a second in a day where the rule execution fails? Is it something core-related or rule-related?\r\n\r\nError log:\r\n```\r\n00:00:00.019 ERROR o.o.m.r.i.e.ExecuteRuleJob[:57]- Error during the execution of rule Update max and min temperatures\r\njava.lang.IllegalArgumentException: Invalid start/end time in fetch request: 1399068000 > 1399067999\r\n        at org.rrd4j.core.FetchRequest.<init>(Unknown Source)\r\n        at org.rrd4j.core.RrdDb.createFetchRequest(Unknown Source)\r\n        at org.openhab.persistence.rrd4j.internal.RRD4jService.query(RRD4jService.java:195)\r\n        at org.openhab.core.persistence.extensions.PersistenceExtensions.getAllStatesSince(PersistenceExtensions.java:402)\r\n        at org.openhab.core.persistence.extensions.PersistenceExtensions.maximumSince(PersistenceExtensions.java:243)\r\n        at org.openhab.core.persistence.extensions.PersistenceExtensions.maximumSince(PersistenceExtensions.java:226)\r\n```\r\nCorresponding rule (from examples):\r\n\r\n```\r\nimport org.openhab.core.library.types.*\r\nimport org.openhab.core.persistence.*\r\nimport org.openhab.model.script.actions.*\r\n\r\n\r\nrule \"Update max and min temperatures\"\r\nwhen\r\n        Item Weather_Temperature changed or\r\n        Time cron \"0 0 0 * * ?\" or\r\n        System started\r\nthen\r\n        postUpdate(Weather_Temp_Max, Weather_Temperature.maximumSince(now.toDateMidnight).state)\r\n        postUpdate(Weather_Temp_Min, Weather_Temperature.minimumSince(now.toDateMidnight).state)\r\nend\r\n\r\n\r\n```"}}