[CSHARP-36] Replace DateTime.Now with DateTime.UtcNow to avoid daylight saving time issues Created: 12/Apr/10  Updated: 19/Oct/16  Resolved: 21/May/10

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

Type: Bug Priority: Minor - P4
Reporter: Doug Marien Assignee: Steve Wagner
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

In PooledConnectionFactory and RawConnection, the usage of DateTime.Now will cause unexpected behavior when clock adjustments are made because of daylight saving time. Switching to DateTime.UtcNow will avoid this.



 Comments   
Comment by Steve Wagner [ 12/Apr/10 ]

I fixed that. Thanks for the suggestion.

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