[CSHARP-3136] Add full support for $dateToString in LINQ3 Created: 16/Jun/20  Updated: 23/Mar/23  Resolved: 28/Oct/22

Status: Closed
Project: C# Driver
Component/s: Linq, LINQ3
Affects Version/s: None
Fix Version/s: 2.19.0

Type: New Feature Priority: Major - P3
Reporter: Dmitry Ryabtsev Assignee: Robert Stam
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: CSHARP-3615
Case:

 Description   

The $dateToString aggregation operation has been introduced quite a while ago. In MongoDB v3.6 it can now take timezone parameter.

At present (as of driver version 2.10) there does not seem to be any way to pass a timezone value / offset if LINQ notation is used.

It is possible however to construct a $group or $project stage from a BsonDocument with timezone specified.



 Comments   
Comment by Githook User [ 02/Nov/22 ]

Author:

{'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}

Message: CSHARP-3136: Skip certain tests on server version 3.6.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/578bd8ee8e13615229978308acdd88a0386281f2

Comment by Githook User [ 28/Oct/22 ]

Author:

{'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}

Message: CSHARP-3136: Add full support for $dateToString in LINQ3.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/9aa140d554fd5b8660d638a1015fe8ff4749e04b

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