<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:43:45 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-2871] DateTime serializes with one hour offset</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2871</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;I have a DateTime property in my class which is set to a date but no time, e.g. Dec 7, 1980 0:00:00.&lt;/p&gt;

&lt;p&gt;{{public DateTime DateOfBirth { get; set; }}}&lt;/p&gt;

&lt;p&gt;The property is auto serialized (no bson attributes or whatever) and the expected value in the collection is:&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;#b22222&quot;&gt;1980-12-07T00:00:00.000+00:00&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;However what is written to the database instead is:&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;#b22222&quot;&gt;1980-12-06T23:00:00.000+00:00&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment>Win10, Local MongoDB server</environment>
        <key id="1046697">CSHARP-2871</key>
            <summary>DateTime serializes with one hour offset</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13202">Works as Designed</resolution>
                                        <assignee username="dmitry.lukyanov@mongodb.com">Dmitry Lukyanov</assignee>
                                    <reporter username="skharchi@xion-medical.com">Samir Kharchi</reporter>
                        <labels>
                    </labels>
                <created>Tue, 10 Dec 2019 17:29:37 +0000</created>
                <updated>Fri, 27 Oct 2023 13:24:54 +0000</updated>
                            <resolved>Fri, 20 Dec 2019 17:05:17 +0000</resolved>
                                    <version>2.9.3</version>
                                                    <component>BSON</component>
                    <component>Serialization</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2647316" author="skharchi@xion-medical.com" created="Thu, 19 Dec 2019 09:34:32 +0000"  >&lt;p&gt;Hi&#160; &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dmitry.lukyanov&quot; class=&quot;user-hover&quot; rel=&quot;dmitry.lukyanov&quot;&gt;dmitry.lukyanov&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;thank you for your answer. That clears it up!&lt;/p&gt;</comment>
                            <comment id="2638376" author="dmitry.lukyanov" created="Tue, 17 Dec 2019 18:53:43 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=skharchi%40xion-medical.com&quot; class=&quot;user-hover&quot; rel=&quot;skharchi@xion-medical.com&quot;&gt;skharchi@xion-medical.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;it happens because we convert dates to universal time(UTC) during serialization. So, if you need converting to local time zones, you should do it in your code.&lt;/p&gt;

&lt;p&gt;Let me know if you have any questions.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hvy27b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>