<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:35:11 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>[GODRIVER-884] Default for timestamps is a zero&apos;d *time.Location, instead of `nil`</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-884</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;We are currently in the process of migrating away from `mgo`, and to the official driver (thank you for making it!).&lt;/p&gt;

&lt;p&gt;In order to perform the migration smoothly, we are writing a suite of parity integration tests, verifying the exact behavior differences between the two libraries. (e.g. reflect.DeepEqual on two objects, one returned from `mgo` the other from official)&lt;/p&gt;

&lt;p&gt;One of our parity tests is failing, in regards to time zone translation when marshaling/un-marshaling a Golang `time.Time`. &#160;`mgo` sets the internal `*time.Location` as `nil`, while the official driver sets it to a zero value.&lt;/p&gt;

&lt;p&gt;I believe `nil` is actually more correct, as this mirrors what the standard library does. See `time.go#192`. When the time is set to `UTC`, it actually sets `loc` to `nil`.&lt;/p&gt;

&lt;p&gt;Because `time.Location` is set to the zero value, this is the representation of the time to default to system location, rather than UTC.&lt;/p&gt;</description>
                <environment></environment>
        <key id="718689">GODRIVER-884</key>
            <summary>Default for timestamps is a zero&apos;d *time.Location, instead of `nil`</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="13201">Fixed</resolution>
                                        <assignee username="kris.brandow@mongodb.com">Kristofer Brandow</assignee>
                                    <reporter username="jloy">Jeremy Loy</reporter>
                        <labels>
                            <label>evg</label>
                    </labels>
                <created>Mon, 18 Mar 2019 16:47:59 +0000</created>
                <updated>Sat, 28 Oct 2023 11:39:03 +0000</updated>
                            <resolved>Wed, 10 Apr 2019 18:57:43 +0000</resolved>
                                    <version>1.0.0</version>
                                    <fixVersion>1.0.1</fixVersion>
                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2208611" author="xgen-internal-githook" created="Wed, 10 Apr 2019 19:00:21 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kris@mongodb.com&apos;, &apos;name&apos;: &apos;Kris Brandow&apos;, &apos;username&apos;: &apos;skriptble&apos;}
&lt;p&gt;Message: Remove *Location in decoded time.Time values&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-884&quot; title=&quot;Default for timestamps is a zero&amp;#39;d *time.Location, instead of `nil`&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-884&quot;&gt;&lt;del&gt;GODRIVER-884&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Change-Id: I1ef785f1ce1e9693e277d41c7a7b4672c411a551&lt;br/&gt;
Branch: release/1.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/ec0d36bda3be51dbea04ed0d8d96b00184e2ac4e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/ec0d36bda3be51dbea04ed0d8d96b00184e2ac4e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2208610" author="xgen-internal-githook" created="Wed, 10 Apr 2019 18:59:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kris Brandow&apos;, &apos;username&apos;: &apos;skriptble&apos;, &apos;email&apos;: &apos;kris@mongodb.com&apos;}
&lt;p&gt;Message: Remove *Location in decoded time.Time values&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-884&quot; title=&quot;Default for timestamps is a zero&amp;#39;d *time.Location, instead of `nil`&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-884&quot;&gt;&lt;del&gt;GODRIVER-884&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Change-Id: I1ef785f1ce1e9693e277d41c7a7b4672c411a551&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/b6330d2a860ca7798aba3e717f9afd08f602a199&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/b6330d2a860ca7798aba3e717f9afd08f602a199&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2203812" author="kris.brandow" created="Fri, 5 Apr 2019 19:14:32 +0000"  >&lt;p&gt;Code Review: &lt;a href=&quot;https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/450300&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/450300&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                        <issuelink>
            <issuekey id="734315">GODRIVER-949</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="728465">GODRIVER-923</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|huanxb:</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>