[CSHARP-372] BsonUtils ToDateTimeFromMillisecondsSinceEpoch and ToMillisecondsSinceEpoch should special case DateTime.MinValue Created: 29/Dec/11 Updated: 02/Apr/15 Resolved: 03/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: | Sridhar Nanjundeswaran |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Similar to DateTime.MaxValue they should also special case DateTime.MinValue |
| Comments |
| Comment by Sridhar Nanjundeswaran [ 03/Jan/12 ] |
|
Special casing not needed for min value. Added unit test to check. |
| Comment by Robert Stam [ 29/Dec/11 ] |
|
See comment I added to If the approach suggested in that comment is adopted then this ticket is moot. |