<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:55:51 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>[SERVER-1028] Pre-Epoch Dates Converted to Future Dates</title>
                <link>https://jira.mongodb.org/browse/SERVER-1028</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When inserting pre-epoch dates, all dates get converted to incorrect future dates on the database side.&lt;/p&gt;

&lt;p&gt;To reproduce from the shell:&lt;/p&gt;

&lt;p&gt;&amp;gt; date = new Date(1950, 1, 1);&lt;br/&gt;
&quot;Wed Feb 01 1950 00:00:00 GMT-0500 (EST)&quot;&lt;/p&gt;

&lt;p&gt;&amp;gt; date.getTime();&lt;br/&gt;
-628455600000&lt;/p&gt;

&lt;p&gt;&amp;gt; db.driver_test.insert(&lt;/p&gt;
{ &quot;dob&quot; : date }
&lt;p&gt;);&lt;/p&gt;

&lt;p&gt;&amp;gt; doc = db.driver_test.findOne();         &lt;br/&gt;
{&lt;br/&gt;
	&quot;_id&quot; : ObjectId(&quot;4bc88e3b65e31b7855e310a5&quot;),&lt;br/&gt;
	&quot;dob&quot; : &quot;Tue Jan -2147483647 584556000 14:25:52 GMT-0500 (EST)&quot;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;&amp;gt; doc.dob&lt;br/&gt;
&quot;Tue Jan -2147483647 584556000 14:25:52 GMT-0500 (EST)&quot;&lt;/p&gt;

&lt;p&gt;&amp;gt; doc.dob.getTime();&lt;br/&gt;
18446743445253951000&lt;/p&gt;

&lt;p&gt;&amp;gt; db.driver_test.find({ &quot;dob&quot; : { $lt : new Date() }});&lt;/p&gt;

&lt;p&gt;&amp;gt; db.driver_test.find({ &quot;dob&quot; : { $gt : new Date() }});&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4bc88e3b65e31b7855e310a5&quot;), &quot;dob&quot; : &quot;Tue Jan -2147483647 584556000 14:25:52 GMT-0500 (EST)&quot; }

&lt;p&gt;mongoexport also exports a bad time:&lt;/p&gt;

&lt;p&gt;{ &quot;_id&quot; : &lt;/p&gt;
{ &quot;$oid&quot; : &quot;4bc88e3b65e31b7855e310a5&quot; }
&lt;p&gt;, &quot;dob&quot; : &lt;/p&gt;
{ &quot;$date&quot; : 18446743445253951616 }
&lt;p&gt; }&lt;/p&gt;

&lt;p&gt;The current workaround that I can see if converting all times that we are going to store to longs and convert back and forth on the application side... This has a side effect of needing to do a large migration on our part.&lt;/p&gt;</description>
                <environment></environment>
        <key id="11801">SERVER-1028</key>
            <summary>Pre-Epoch Dates Converted to Future Dates</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="3">Duplicate</resolution>
                                        <assignee username="kbanker">Kyle Banker</assignee>
                                    <reporter username="durran">Durran Jordan</reporter>
                        <labels>
                    </labels>
                <created>Fri, 16 Apr 2010 12:46:48 +0000</created>
                <updated>Fri, 16 Apr 2010 15:28:08 +0000</updated>
                            <resolved>Fri, 16 Apr 2010 15:28:08 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="13700" author="eliot" created="Fri, 16 Apr 2010 15:28:08 +0000"  >&lt;p&gt;see &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-405&quot; title=&quot;dates before epoch sorting&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-405&quot;&gt;&lt;del&gt;SERVER-405&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10012"><![CDATA[Major Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 16 Apr 2010 15:28:08 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 44 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 44 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>durran</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>kbanker</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpnfr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hriouf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>22677</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht0j8v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>