-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
TimeZone Validation Error when bulk-editing sites #2369
Comments
So after a bit of poking, it seems that the root issue is that I don't want to inherit the problem of maintaining timezones. Really, I can't overstate how much I'd like to avoid that. So we have two options:
I don't have a strong opinion, although it's worth noting that
|
I agree with this comment:
Concerning the options you outlined above, I'd personally prefer doing option However, it you do choose option All that being said, I don't know how much of a burden of an additional 152 time zones is (~34% of the current total)? |
Here's the delta of additional timezones. Some of them seem a bit confusing. For example, |
I think it would be beneficial to include these additional entries to as to not be too restrictive on end-users. |
I'm just going to limit the serializer to accept only values from within |
Environment
Steps to Reproduce
I'm not sure exactly how this happened, but the
time_zone
of a certain number ofsites
are really messed up in my production instance of NetBox.It appears to only be an issue where, the offset is NOT on the even hour mark (i.e.
UTC +05:30
in India).When I try to bulk-edit an unrelated
custom_field
, I get the following error:However, when I view that site, everything appears to be normal:
Only after clicking
Edit
and not changing anything and then clickingSave
and re-trying the bulk-edit I was attempting before, does the problem go away.Expected Behavior
To NOT see a
TimeZone
validation error when the WebUI appears to be okay.Observed Behavior
The validation error seems to include an additional
53
minutes to the timezone no matter what until after the site is individually edited and saved.I'm going to proceed and keep fixing my production instance of NetBox so I mostly likely won't have an option to follow-up on this should you require more information. I'll try and get a backup of my
postgres
database to which contains these errors, but I don't know if that will help at all.Here's another example of a different site in India:
Showing the individual site:
The text was updated successfully, but these errors were encountered: