Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Raise errors instead of returning null #6

Open
mattjohnsonpint opened this issue Oct 3, 2015 · 1 comment
Open

Raise errors instead of returning null #6

mattjohnsonpint opened this issue Oct 3, 2015 · 1 comment

Comments

@mattjohnsonpint
Copy link
Owner

If you pass a time zone that doesn't exist, most of the functions return null. Instead they should raise an error.

@mattjohnsonpint mattjohnsonpint changed the title Raise error for invalid time zone Raise errors instead of returning null Oct 3, 2015
@mattjohnsonpint
Copy link
Owner Author

Additionally, as mentioned in the readme, the LocalToUtc and ConvertZone functions will return null if SkipOnSpringForwardGap = 0 and the local value falls into the gap. This should also raise an error instead of returning null, and the readme should be updated.

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

No branches or pull requests

1 participant