[CSHARP-373] BsonUtils.ToLocalTime should throw ArgumentException if the DateTimeKind is UTC Created: 29/Dec/11  Updated: 02/Apr/15  Resolved: 05/Jan/12

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.3.1
Fix Version/s: 1.4

Type: Improvement Priority: Trivial - P5
Reporter: Sridhar Nanjundeswaran Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change

 Comments   
Comment by Robert Stam [ 05/Jan/12 ]

Removed the kind parameter from the ToLocalTime helper method in BsonUtils. There were only two places that were calling this method with a kind argument other than Local, and they were changed to handle setting the kind at the call site.

This is an internal method and most likely this change will not be backward breaking for you.

Generated at Wed Feb 07 21:36:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.