bradymholt / cRonstrue

JavaScript library that translates Cron expressions into human readable descriptions
http://bradymholt.github.io/cRonstrue/
MIT License
1.28k stars 168 forks source link

tzOffset does not work with decimal values #295

Closed fabianTMC closed 10 months ago

fabianTMC commented 11 months ago

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 commented 11 months ago

@khorevnikita Do you know what is going on here?