Closed codez closed 2 years ago
Thanks.
The time zone in Time.zone
is used and it is what is causing the problem in ::TZInfo::TimeZone.local_to_utc
. Back here.
Hello,
I've just released https://rubygems.org/gems/fugit/versions/1.5.2
It solves the issue (at least for me). If you spot anything wrong, please do tell me.
Thanks and best regards!
Thank you very much for your work!
@codez je t'en prie, merci vielmal again!
Issue description
When using
Time.zone
instead ofENV['TZ']
,Cron#next_time
throws aTZInfo::PeriodNotFound
exception.How to reproduce
Error and error backtrace (if any)
Expected behaviour
The timezone setting in
Time.zone
should be used as fallback whenENV['TZ']
is nil and the correct output ("2021-09-15 08:00:00 -0300") should be returned.Context
)