<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:40:38 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>[DOCS-1268] Unable to insert via shell using the strict dates</title>
                <link>https://jira.mongodb.org/browse/DOCS-1268</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;db.bug.insert(&lt;br/&gt;
  {&lt;br/&gt;
    &quot;meta&quot; : {&lt;br/&gt;
      &quot;dateTime&quot; : &lt;/p&gt;
{ &quot;$date&quot; : &quot;1970-01-01T00:00:00.000Z&quot;}
&lt;p&gt;    }&lt;br/&gt;
  })&lt;/p&gt;

&lt;p&gt;gives failed: field names cannot start with $ &lt;span class=&quot;error&quot;&gt;&amp;#91;$date&amp;#93;&lt;/span&gt; at src/mongo/shell/collection.js:L147&lt;/p&gt;</description>
                <environment>&lt;br/&gt;
&lt;br/&gt;
*Location*: &lt;a href=&quot;http://docs.mongodb.org/manual/reference/mongodb-extended-json/&quot;&gt;http://docs.mongodb.org/manual/reference/mongodb-extended-json/&lt;/a&gt;&lt;br/&gt;
*User-Agent*: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22&lt;br/&gt;
*Screen Resolution*: 1600 x 900&lt;br/&gt;
*repo*: docs&lt;br/&gt;
*source*: reference/mongodb-extended-json&lt;br/&gt;
</environment>
        <key id="69055">DOCS-1268</key>
            <summary>Unable to insert via shell using the strict dates</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="kay.kim@mongodb.com">Kay Kim</assignee>
                                    <reporter username="auto">auto</reporter>
                        <labels>
                            <label>collector-298ba4e7</label>
                    </labels>
                <created>Wed, 20 Mar 2013 06:49:31 +0000</created>
                <updated>Fri, 3 Nov 2017 11:24:10 +0000</updated>
                            <resolved>Tue, 16 Apr 2013 21:51:04 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="314914" author="kay.kim@10gen.com" created="Tue, 16 Apr 2013 21:50:47 +0000"  >&lt;p&gt;Hi Vlad &amp;#8211; &lt;br/&gt;
regarding your insert command, the datetime representation you are using is the &quot;strict&quot; mode and NOT the &quot;mongo shell mode&quot;.  &lt;br/&gt;
The REST interfaces and mongoimport/mongoexport programs support all three modes: &quot;strict&quot; mode, the &quot;JavaScript&quot; mode, and the &quot;mongo shell&quot; mode.&lt;br/&gt;
For others, you should use the appropriate driver or shell format.&lt;/p&gt;

&lt;p&gt;Please try db.bug.insert( &lt;/p&gt;
{ &quot;dateTime&quot;: new Date(&quot;04-16-2013&quot;) }
&lt;p&gt; ).&lt;/p&gt;

&lt;p&gt;Hope this helps.&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;

&lt;p&gt;Kay&lt;/p&gt;</comment>
                            <comment id="304876" author="vladislav.mickevic@gmail.com" created="Wed, 3 Apr 2013 07:23:48 +0000"  >&lt;p&gt;We are using it not only from shell, but also from within the native JavaScript drivers.&lt;/p&gt;</comment>
                            <comment id="304600" author="epc" created="Tue, 2 Apr 2013 22:22:48 +0000"  >&lt;p&gt;Kay can you review the extended JSON page &lt;a href=&quot;http://docs.mongodb.org/manual/reference/mongodb-extended-json/#gsc.tab=0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/reference/mongodb-extended-json/#gsc.tab=0&lt;/a&gt; and see if clarification is needed on fields like $date (which is valid in JSON import/export but not the mongo shell)?&lt;/p&gt;</comment>
                            <comment id="304588" author="epc" created="Tue, 2 Apr 2013 22:14:25 +0000"  >&lt;p&gt;$date cannot be used in the shell, only in the REST interface and in the tools like mongoimport.&lt;/p&gt;</comment>
                            <comment id="299684" author="vladislav.mickevic@gmail.com" created="Wed, 27 Mar 2013 10:37:27 +0000"  >&lt;p&gt;Any news on this? We have the same issue. Mongo v 2.2.3.&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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 27 Mar 2013 10:37:27 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 44 weeks, 1 day 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>jess.mokrzecki@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 44 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>epc</customfieldvalue>
            <customfieldvalue>kay.kim@mongodb.com</customfieldvalue>
            <customfieldvalue>vladislav.mickevic@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrq1tr:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>46842</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hri4sn:</customfieldvalue>

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