Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tzOffset does not work with decimal values #295

Closed
fabianTMC opened this issue Oct 5, 2023 · 1 comment · Fixed by #297
Closed

tzOffset does not work with decimal values #295

fabianTMC opened this issue Oct 5, 2023 · 1 comment · Fixed by #297

Comments

@fabianTMC
Copy link
Contributor

Hi, I am trying to get the cron time to come out in Indian Standard Time (GMT + 5.30) and I have tried this but the output I get is incorrect.

var cronstrue = require("cronstrue")
cronstrue.toString("31 10 * * *", {
    tzOffset: 5.5
})

Expected: At 4:01 PM
Got: At .5:31 PM

Is there something I am missing?

@bradymholt
Copy link
Owner

@khorevnikita Do you know what is going on here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants