{"action":"opened","issue":{"url":"https://api.github.com/repos/jmrozanec/cron-utils-examples/issues/2","repository_url":"https://api.github.com/repos/jmrozanec/cron-utils-examples","labels_url":"https://api.github.com/repos/jmrozanec/cron-utils-examples/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jmrozanec/cron-utils-examples/issues/2/comments","events_url":"https://api.github.com/repos/jmrozanec/cron-utils-examples/issues/2/events","html_url":"https://github.com/jmrozanec/cron-utils-examples/issues/2","id":180871620,"number":2,"title":"Time for Quartz cron set improperly ","user":{"login":"tautautau","id":11249628,"avatar_url":"https://avatars.githubusercontent.com/u/11249628?v=3","gravatar_id":"","url":"https://api.github.com/users/tautautau","html_url":"https://github.com/tautautau","followers_url":"https://api.github.com/users/tautautau/followers","following_url":"https://api.github.com/users/tautautau/following{/other_user}","gists_url":"https://api.github.com/users/tautautau/gists{/gist_id}","starred_url":"https://api.github.com/users/tautautau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tautautau/subscriptions","organizations_url":"https://api.github.com/users/tautautau/orgs","repos_url":"https://api.github.com/users/tautautau/repos","events_url":"https://api.github.com/users/tautautau/events{/privacy}","received_events_url":"https://api.github.com/users/tautautau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-04T11:48:55Z","updated_at":"2016-10-04T11:48:55Z","closed_at":null,"body":"Hi,\r\n\r\nthe next execution time is set improperly if 5/15 expression is used in Quartz cron. I have a quartz cron expression: \"0 5/15 * * * ? *\". \r\nI have set time as: 2016-07-30T15:00:00.000000527Z. \r\nThe Result: \r\nnextExecution: \"2016-07-30T15:15Z\"\r\nlastExecution: \"2016-07-30T14:45Z\"\r\nExpected Result would be: \r\nnextExecution: \"2016-07-30T15:05Z\"\r\nlastExecution: \"2016-07-30T14:50Z\"\r\n\r\nAlso in current version lastExecution time if cron expression would be \"0 0/15 * * * ? *\" is returned wrong. Cause it should be \"2016-07-30T15:00Z\"..\r\n\r\nSample code:\r\n`        CronParser quartzCronParser = new CronParser(CronDefinitionBuilder.instanceDefinitionFor(QUARTZ));\r\n        String quartzCronExpression2 = \"0 5/15 * * * ? *\";\r\n        Cron parsedQuartzCronExpression = quartzCronParser.parse(quartzCronExpression2);\r\n\r\n        ExecutionTime executionTime = ExecutionTime.forCron(parsedQuartzCronExpression);\r\n\r\n        ZonedDateTime zonedDateTime = LocalDateTime.of(2016, 7, 30, 15, 00, 0, 527).atZone(ZoneOffset.UTC);\r\n\r\n        ZonedDateTime nextExecution = executionTime.nextExecution(zonedDateTime);\r\n        ZonedDateTime lastExecution = executionTime.lastExecution(zonedDateTime);`"}}
{"actor":{"display_login":"tautautau"}}