<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:03:04 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-3441] Timezones with &quot;+hh:mm&quot; or &quot;-hh:mm&quot; work, but those with &quot;Z&quot; don&apos;t</title>
                <link>https://jira.mongodb.org/browse/SERVER-3441</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;According to the W3C (&lt;a href=&quot;http://www.w3.org/TR/NOTE-datetime&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.w3.org/TR/NOTE-datetime&lt;/a&gt;) and the IETF (&lt;a href=&quot;http://tools.ietf.org/html/rfc3339&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://tools.ietf.org/html/rfc3339&lt;/a&gt;), both ways of representing time zones should be accepted:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;2011-07-18T08:35:21-05:00 (works!)&lt;/li&gt;
	&lt;li&gt;2011-07-18T13:35:21Z (doesn&apos;t work!)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The first way (2011-07-18T08:35:21-05:00) works just fine:&lt;/p&gt;

&lt;p&gt;    mydbset:PRIMARY&amp;gt; db.MyCollection.find({&quot;started_at&quot;:{&quot;$gte&quot;:&quot;2011-07-18T08:35:21-05:00&quot;,&quot;$lt&quot;:&quot;2011-07-18T12:35:21-05:00&quot;}}).count()&lt;br/&gt;
    2789&lt;br/&gt;
    mydbset:PRIMARY&amp;gt; db.MyCollection.find({&quot;started_at&quot;:{&quot;$gte&quot;:&quot;2011-07-18T08:35:21-05:00&quot;,&quot;$lt&quot;:&quot;2011-07-18T12:35:21-05:00&quot;}}).explain()&lt;br/&gt;
    {&lt;br/&gt;
    	&quot;cursor&quot; : &quot;BtreeCursor started_at_1&quot;,&lt;br/&gt;
    	&quot;nscanned&quot; : 2791,&lt;br/&gt;
    	&quot;nscannedObjects&quot; : 2791,&lt;br/&gt;
    	&quot;n&quot; : 2791,&lt;br/&gt;
    	&quot;millis&quot; : 2,&lt;br/&gt;
    	&quot;nYields&quot; : 0,&lt;br/&gt;
    	&quot;nChunkSkips&quot; : 0,&lt;br/&gt;
    	&quot;isMultiKey&quot; : false,&lt;br/&gt;
    	&quot;indexOnly&quot; : false,&lt;br/&gt;
    	&quot;indexBounds&quot; : &lt;/p&gt;
{
    		&quot;started_at&quot; : [
    			[
    				&quot;2011-07-18T08:35:21-05:00&quot;,
    				&quot;2011-07-18T12:35:21-05:00&quot;
    			]
    		]
    	}
&lt;p&gt;    }&lt;/p&gt;

&lt;p&gt;The second way (2011-07-18T13:35:21Z) fails silently:&lt;/p&gt;

&lt;p&gt;    mydbset:PRIMARY&amp;gt; db.MyCollection.find({&quot;started_at&quot;:{&quot;$gte&quot;:&quot;2011-07-18T13:35:21Z&quot;,&quot;$lt&quot;:&quot;2011-07-18T17:35:21Z&quot;}}).count()          &lt;br/&gt;
    0&lt;br/&gt;
    mydbset:PRIMARY&amp;gt; db.MyCollection.find({&quot;started_at&quot;:{&quot;$gte&quot;:&quot;2011-07-18T13:35:21Z&quot;,&quot;$lt&quot;:&quot;2011-07-18T17:35:21Z&quot;}}).explain()          &lt;br/&gt;
    {&lt;br/&gt;
    	&quot;cursor&quot; : &quot;BtreeCursor started_at_1&quot;,&lt;br/&gt;
    	&quot;nscanned&quot; : 0,&lt;br/&gt;
    	&quot;nscannedObjects&quot; : 0,&lt;br/&gt;
    	&quot;n&quot; : 0,&lt;br/&gt;
    	&quot;millis&quot; : 0,&lt;br/&gt;
    	&quot;nYields&quot; : 0,&lt;br/&gt;
    	&quot;nChunkSkips&quot; : 0,&lt;br/&gt;
    	&quot;isMultiKey&quot; : false,&lt;br/&gt;
    	&quot;indexOnly&quot; : false,&lt;br/&gt;
    	&quot;indexBounds&quot; : &lt;/p&gt;
{
    		&quot;started_at&quot; : [
    			[
    				&quot;2011-07-18T13:35:21Z&quot;,
    				&quot;2011-07-18T17:35:21Z&quot;
    			]
    		]
    	}
&lt;p&gt;    }&lt;/p&gt;

&lt;p&gt;This causes particular problems with the mongo-ruby-driver because Time.now.utc.to_json gives the non-working form:&lt;/p&gt;

&lt;p&gt;    require &apos;active_support&apos;&lt;br/&gt;
    require &apos;active_support/json&apos;&lt;br/&gt;
    { :started_at =&amp;gt; Time.now }.to_json     #=&amp;gt; &lt;/p&gt;
{&quot;started_at&quot;:&quot;2011-07-18T14:15:30-05:00&quot;}
&lt;p&gt;    { :started_at =&amp;gt; Time.now.utc }.to_json #=&amp;gt; &lt;/p&gt;
{&quot;started_at&quot;:&quot;2011-07-18T19:15:37Z&quot;}</description>
                <environment></environment>
        <key id="19701">SERVER-3441</key>
            <summary>Timezones with &quot;+hh:mm&quot; or &quot;-hh:mm&quot; work, but those with &quot;Z&quot; don&apos;t</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="seamusabshere">Seamus Abshere</reporter>
                        <labels>
                            <label>standards</label>
                            <label>timezone</label>
                    </labels>
                <created>Mon, 18 Jul 2011 19:23:34 +0000</created>
                <updated>Mon, 29 Aug 2011 15:56:35 +0000</updated>
                            <resolved>Mon, 18 Jul 2011 19:33:45 +0000</resolved>
                                    <version>1.8.2</version>
                                                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="42885" author="seamusabshere" created="Mon, 18 Jul 2011 19:55:09 +0000"  >&lt;p&gt;Thanks for clarifying this.&lt;/p&gt;

&lt;p&gt;It appears that the dates have been stored as Strings on the server itself, which is the source of this problem.&lt;/p&gt;</comment>
                            <comment id="42881" author="scotthernandez" created="Mon, 18 Jul 2011 19:33:45 +0000"  >&lt;p&gt;Strings are not Dates, and they are not compatible when used in queries.&lt;/p&gt;


&lt;p&gt;&amp;gt;new ISODate(&quot;2011-07-18T13:35:21Z&quot;) &lt;br/&gt;
ISODate(&quot;2011-07-18T13:35:21Z&quot;)&lt;br/&gt;
&amp;gt; new ISODate(&quot;2011-07-18T08:35:21-05:00&quot;) &lt;br/&gt;
ISODate(&quot;2011-07-18T13:35:21Z&quot;)&lt;br/&gt;
&amp;gt;new ISODate(&quot;2011-07-18T08:35:21-05:00&quot;)  == &quot;2011-07-18T13:35:21Z&quot;&lt;/p&gt;

&lt;p&gt;In ruby that is just pretty printing and not what gets sent to the server.&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>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 18 Jul 2011 19:33:45 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 31 weeks, 2 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>
                            12 years, 31 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>scotthernandez</customfieldvalue>
            <customfieldvalue>seamusabshere</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrovm7:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>23207</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|ht0eg7:</customfieldvalue>

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