<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:33:21 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-76696] $dateToString aggregation with timezone outputs invalid ISO8601 string</title>
                <link>https://jira.mongodb.org/browse/SERVER-76696</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When using the &lt;tt&gt;$dateToString&lt;/tt&gt; aggregation operator on an ISODate value, specifying a timezone but not a format string, an invalid/inaccurate ISO8601 date string is returned. &lt;/p&gt;

&lt;p&gt;Specifically: &lt;tt&gt;2023-04-26T12:06:17.194Z&lt;/tt&gt; when using something like:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.collection.aggregate([{ &quot;$addFields&quot;: {&quot;txDateString&quot;: { &quot;$dateToString&quot;: {date: &quot;$transactionDateTS&quot;, timezone: &quot;America/New_York&quot;} } }} ])`&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;The root issue is that the &quot;Z&quot; &lt;b&gt;categorically implies&lt;/b&gt; a timezone of UTC (+00:00)... But, in this case, that&apos;s absolutely incorrect and, technically, makes it an invalid ISO8601 date string. (I suppose one could argue that it&apos;s &lt;b&gt;syntatically&lt;/b&gt; valid - but it&apos;s certainly misleading and could result in major issues if another program were to parse the date string as it would interpret the time as &quot;Zulu&quot;/UTC because of the &quot;Z&quot;.) The inclusion of the &quot;Z&quot; when &lt;b&gt;explicitly specifying&lt;/b&gt; a timezone is certainly unexpected...  &lt;/p&gt;

&lt;p&gt;At a &lt;b&gt;minimum&lt;/b&gt;, when a format string is unspecified and a date/time in UTC is converted to another time zone, the &quot;Z&quot; should be left off. Ideally, the UTC offset (obtained from the timezone conversion) should be included as per ISO8601 &amp;#8211; i.e. in this case, &lt;tt&gt;2023-04-26T12:06:17.194-04:00&lt;/tt&gt; (at the time of this writing, &lt;tt&gt;America/New_York&lt;/tt&gt; is on Eastern Daylight Time (EDT) which is UTC-04:00.) &lt;/p&gt;

&lt;p&gt;Related issues appear to include: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-33173&quot; title=&quot;Make &amp;quot;format&amp;quot; parameter optional for $dateToString&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-33173&quot;&gt;&lt;del&gt;SERVER-33173&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28610&quot; title=&quot;Add time zone support, and %z and %Z arguments to the $dateToString operator&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28610&quot;&gt;&lt;del&gt;SERVER-28610&lt;/del&gt;&lt;/a&gt; &lt;/p&gt;</description>
                <environment>MongoDB Community v6.0.3 / git revision f803681c3ae19817d31958965850193de067c516 (ubuntu 20.04)</environment>
        <key id="2327954">SERVER-76696</key>
            <summary>$dateToString aggregation with timezone outputs invalid ISO8601 string</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="kevin.cherkauer@mongodb.com">Kevin Cherkauer</assignee>
                                    <reporter username="danieljewell@gmail.com">Daniel Jewell</reporter>
                        <labels>
                            <label>DateTime</label>
                            <label>TimeZone</label>
                            <label>aggregation</label>
                            <label>aggregation-framework</label>
                            <label>conversion</label>
                            <label>date</label>
                            <label>dateToString</label>
                            <label>timezone</label>
                    </labels>
                <created>Fri, 28 Apr 2023 21:00:42 +0000</created>
                <updated>Sun, 29 Oct 2023 21:22:15 +0000</updated>
                            <resolved>Thu, 22 Jun 2023 15:57:09 +0000</resolved>
                                    <version>6.0.3</version>
                                    <fixVersion>7.1.0-rc0</fixVersion>
                                    <component>Aggregation Framework</component>
                    <component>Query Language</component>
                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="5517121" author="xgen-internal-githook" created="Wed, 21 Jun 2023 23:59:39 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Cherkauer&apos;, &apos;email&apos;: &apos;kevin.cherkauer@mongodb.com&apos;, &apos;username&apos;: &apos;kevin-cherkauer&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-76696&quot; title=&quot;$dateToString aggregation with timezone outputs invalid ISO8601 string&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-76696&quot;&gt;&lt;del&gt;SERVER-76696&lt;/del&gt;&lt;/a&gt; Default $dateToString format omit &apos;Z&apos; for non-UTC timezones&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/bda6d2c12112cdba737dcd48c8b97790cd4db25f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/bda6d2c12112cdba737dcd48c8b97790cd4db25f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5436478" author="JIRAUSER1265607" created="Thu, 18 May 2023 22:04:26 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kyle.suarez%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;kyle.suarez@mongodb.com&quot;&gt;kyle.suarez@mongodb.com&lt;/a&gt; &apos;s proposal sounds reasonable to me. Send this back to engineering team to proceed with it.&lt;/p&gt;

&lt;p&gt;FYI &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kateryna.kamenieva%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;kateryna.kamenieva@mongodb.com&quot;&gt;kateryna.kamenieva@mongodb.com&lt;/a&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="5395404" author="kyle.suarez" created="Tue, 2 May 2023 19:34:33 +0000"  >&lt;p&gt;Thank you &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=danieljewell%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;danieljewell@gmail.com&quot;&gt;danieljewell@gmail.com&lt;/a&gt; for the report. After reviewing this and the ISO 8601 spec with the team it does seem completely wrong to be tacking on the &quot;Z&quot;.&lt;/p&gt;

&lt;p&gt;I&apos;m tagging our Query Product team to discuss next steps for this ticket, as it does affect default behavior, which &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kateryna.kamenieva%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;kateryna.kamenieva@mongodb.com&quot;&gt;kateryna.kamenieva@mongodb.com&lt;/a&gt; flagged in our meeting. My suggestion would be to:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Take Daniel&apos;s suggestion and change the code to stop emitting the &quot;Z&quot; by default.&lt;/li&gt;
	&lt;li&gt;&lt;b&gt;Do not&lt;/b&gt; backport this change to any of the existing released branches, so as not to break anyone depending on the existing format, but document that there is a change in behavior starting with the next release.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Lastly, I&apos;ve marked this ticket as a &quot;minor change&quot; and tagged the downstream changes teams since this may affect them if they use this expression.&lt;/p&gt;</comment>
                            <comment id="5386581" author="JIRAUSER1273607" created="Fri, 28 Apr 2023 22:59:00 +0000"  >&lt;p&gt;One thought ... &lt;/p&gt;

&lt;p&gt;Yes, the current documentation for &lt;tt&gt;$dateToString&lt;/tt&gt; &lt;em&gt;does&lt;/em&gt; reference a default value for &lt;tt&gt;format&lt;/tt&gt; of &lt;tt&gt;&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;&lt;/tt&gt; (see: &lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/operator/aggregation/dateToString/#std-label-format-specifiers&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.mongodb.com/docs/manual/reference/operator/aggregation/dateToString/#std-label-format-specifiers&lt;/a&gt;) &lt;/p&gt;

&lt;p&gt;That said, I suppose the issue &lt;em&gt;could&lt;/em&gt; be viewed as more of an issue with the default format string (namely, always including a string  constant of &quot;Z&quot; - implying a timezone-aware value that is UTC... when in fact that&apos;s not &lt;b&gt;necessarily&lt;/b&gt; the case... )&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                                        </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="2330366">TOOLS-3294</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2330362">COMPASS-6785</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="2330360">DOCS-16090</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="370756">SERVER-28610</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="494000">SERVER-33173</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1423932">SERVER-49979</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25125"><![CDATA[Query Execution]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 2 May 2023 19:34:33 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        33 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/TIG-4452'>TIG-4452</a></s>]]></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_17052" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Downstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>The current default behavior of MongoDB&amp;#39;s $dateToString aggregation expression is incorrect because it violates ISO 8601. (It tacks on a &amp;quot;Z&amp;quot; to the end of the string by default, which implies that it is in UTC [1], but in actually it&amp;#39;s in the timezone of the local server.)&lt;br/&gt;
&lt;br/&gt;
This ticket proposes a number of routes to change the default behavior of $dateToString to bring it into compliance with ISO 8601.&lt;br/&gt;
&lt;br/&gt;
[1] &lt;a href=&quot;https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)&quot;&gt;https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
1. If the query specifies a date format string, this is used.&lt;br/&gt;
2. If no format string is specified, then&lt;br/&gt;
&amp;nbsp;&amp;nbsp;a. If no timezone is specified or the UTC timezone is explicitly specified, the default format will continue to include the &amp;#39;Z&amp;#39; suffix (yyyy-mm-ddThh:mm:ss.uuuZ).&lt;br/&gt;
&amp;nbsp;&amp;nbsp;b. If a non-UTC timezone is specified, the default format will omit the &amp;#39;Z&amp;#39; suffix (yyyy-mm-ddThh:mm:ss.uuu).&lt;br/&gt;
&lt;br/&gt;
Case 2b is the only change from prior behavior.&lt;br/&gt;
&lt;br/&gt;
This change was delivered in 7.1.0-rc0 and will NOT be backported.&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&lt;br/&gt;
</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16942"><![CDATA[Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-3065</customfieldvalue>
                        </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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            33 weeks ago
                        </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>danieljewell@gmail.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kevin.cherkauer@mongodb.com</customfieldvalue>
            <customfieldvalue>kyle.suarez@mongodb.com</customfieldvalue>
            <customfieldvalue>xiaochen.wu@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i26zhz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i1pa40:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="7236">QE 2023-06-12</customfieldvalue>
    <customfieldvalue id="7238">QE 2023-06-26</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;From the mongo shell: &lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; &lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.createCollection(&quot;datetest&quot;)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.datetest.insertOne({&quot;name&quot;: &quot;Hello&quot;, &quot;transactionDateTS&quot;: ISODate()})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.datetest.aggregate([{ &quot;$addFields&quot;: {&quot;txString&quot;: { &quot;$dateToString&quot;: {date: &quot;$transactionDateTS&quot;, timezone: &quot;America/New_York&quot;} } }} ])&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;the output will vary as the code uses the current time, but an example follows: &lt;/p&gt;

&lt;p&gt;&lt;tt&gt;[ ...&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;transactionDateTS: ISODate(&quot;2023-04-28T20:52:40.752Z&quot;),&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;txString: &apos;2023-04-28T16:52:40.752Z&apos;&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;...]&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;In this case, &lt;tt&gt;transactionDateTS != txString&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Expected&lt;/em&gt; output is either: &lt;/p&gt;

&lt;p&gt;(less preferable)&lt;br/&gt;
&lt;tt&gt;txString: &apos;2023-04-28T16:52:40.752&apos;&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;(more preferable, because the UTC Offset should already be known from the date/time conversion... )&lt;br/&gt;
&lt;tt&gt;txString: &apos;2023-04-28T16:52:40.752-04:00&apos;&lt;/tt&gt;&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_17051" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Teams Impacted</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16943"><![CDATA[Cloud]]></customfieldvalue>
    <customfieldvalue key="16944"><![CDATA[Docs]]></customfieldvalue>
    <customfieldvalue key="16945"><![CDATA[Drivers]]></customfieldvalue>
    <customfieldvalue key="20960"><![CDATA[DBX: DevTools (Compass, Shell, VS Code Ext)]]></customfieldvalue>
    <customfieldvalue key="16946"><![CDATA[Triage and Release]]></customfieldvalue>
    <customfieldvalue key="20958"><![CDATA[Atlas Data Federation and Data Lake]]></customfieldvalue>
    <customfieldvalue key="20959"><![CDATA[Charts]]></customfieldvalue>
    <customfieldvalue key="24662"><![CDATA[TAR (DB Tools, Mongomirror, Mongosync)]]></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_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|i26lnb:</customfieldvalue>

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