Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add BsonDate.toSysTime(tz) overload #2252
Otherwise right now when using the Bson constructor taking a date with null timezone, it will take the local time. When the local time timezone is negative and you want to convert back from BsonDate to SysTime to Date, you will be a day behind than what you originally input because you can only convert to SysTime using UTC.