<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:16:46 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>[CDRIVER-2945] Add public function for converting from BSON dates to ISO8601 strings</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2945</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;It looks like the C driver currently doesn&apos;t provide a public function for converting from BSON dates to ISO8601 strings. It would be helpful to provide a standard public cross-platform function via the driver API, as standard C library functions like &lt;tt&gt;gmtime()&lt;/tt&gt; do not consistently support dates before the Unix epoch.&lt;/p&gt;

&lt;p&gt;For example, the Windows implementation of the &lt;a href=&quot;https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/gmtime-gmtime32-gmtime64?view=vs-2017&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;`gmtime()` function&lt;/a&gt; currently does not support dates earlier than 1970:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;If &lt;b&gt;sourceTime&lt;/b&gt; represents a date before midnight, January 1, 1970, *&lt;b&gt;gmtime&lt;/b&gt;* returns *&lt;b&gt;NULL&lt;/b&gt;*. There is no error return.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;A suggested approach on Windows would be to fallback to SYSTEMTIME using the Windows API instead of C API: &lt;a href=&quot;https://docs.microsoft.com/en-us/windows/desktop/Intl/retrieving-time-and-date-information&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.microsoft.com/en-us/windows/desktop/Intl/retrieving-time-and-date-information&lt;/a&gt; (&lt;a href=&quot;https://docs.microsoft.com/en-us/windows/desktop/api/datetimeapi/nf-datetimeapi-gettimeformatex&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;GetTimeFormatEx&lt;/a&gt;, &lt;a href=&quot;https://docs.microsoft.com/en-us/windows/desktop/api/datetimeapi/nf-datetimeapi-getdateformatex&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;GetDateFormatEx&lt;/a&gt;).&lt;/p&gt;</description>
                <environment></environment>
        <key id="684604">CDRIVER-2945</key>
            <summary>Add public function for converting from BSON dates to ISO8601 strings</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="stephen.steneker@mongodb.com">Stennie Steneker</reporter>
                        <labels>
                            <label>bg-rf</label>
                            <label>neweng</label>
                    </labels>
                <created>Wed, 6 Feb 2019 05:05:56 +0000</created>
                <updated>Mon, 5 Feb 2024 19:42:26 +0000</updated>
                                                                            <component>libbson</component>
                                        <votes>1</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2139206" author="stennie" created="Wed, 6 Feb 2019 05:10:12 +0000"  >&lt;p&gt;Related discussion while tracking down a problem with displaying ISO dates in mongolite 2.0 (which uses the 1.12.0 mongo-c-driver): &lt;a href=&quot;https://github.com/jeroen/mongolite/issues/171&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Query dates before 1970 returns &quot;.000Z&quot;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                    <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5002K00000dBxSoQAK]]]></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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-3870</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_21553" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Quarter</customfieldname>
                        <customfieldvalues>
                                        <label>FY25Q2</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzjjpz:</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>