Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-80

Return Local DateTime by default

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.7
    • Affects Version/s: 0.5
    • Component/s: None
    • Labels:
      None

      Moved from: http://github.com/mongodb/mongo-csharp-driver/issues#issue/4

      What the most .Net developers expect is that they can save a DateTime.Now to database, load it and get back the correct value.

      Currently the driver returns UTC. Which forces the developers do always convert it to local date by hand which is very uncomfortable.

      MongoDB-CSharp solves that by automatically convert the date to a local date (means the timezone where i am in currently). But the developer is able to deactivate this by configuration.

      I think 95% of all developers are developing apps where they store dates only for the current timezone.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: