SqlServerTimeZoneSupport icon indicating copy to clipboard operation
SqlServerTimeZoneSupport copied to clipboard

Raise errors instead of returning null

Open mattjohnsonpint opened this issue 10 years ago • 1 comments
trafficstars

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

mattjohnsonpint avatar Oct 03 '15 04:10 mattjohnsonpint

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.

mattjohnsonpint avatar Oct 03 '15 05:10 mattjohnsonpint