Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
TZInfo::PeriodNotFound due to DST #96
I'am getting TZInfo::PeriodNotFound due to DST in production environment. In development, it automatically goes to the next valid hour. This only occurs when submitting a form with a date field. Setting the date directly on rails console works as expected. Should I look for any specific configuration / env var in order to have the same behaviour on both environments? I am using Rails 5.1.3 and tzinfo 1.2.3.
I would expect that you'd see the same behaviour with the Rails console as you would with the form submission. Trying to work out what the difference is and replicating in the console in production would probably be helpful.
Are you using the same data source and version of the Time Zone Database in development and production? You can check the selected data source with