<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:11:19 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-6310] Timezone support in date operators at query time</title>
                <link>https://jira.mongodb.org/browse/SERVER-6310</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;div class=&quot;panel&quot; style=&quot;background-color: #EEEEEE;border-color: #ccc;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-color: #ccc;background-color: #6CB33F;&quot;&gt;&lt;b&gt;Issue Status as of July 26, 2017&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot; style=&quot;background-color: #EEEEEE;&quot;&gt;
&lt;p&gt;&lt;b&gt;ISSUE SUMMARY&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;In previous versions of MongoDB, the date extraction operations &lt;tt&gt;$year&lt;/tt&gt;, &lt;tt&gt;$month&lt;/tt&gt;, etc. could only extract the information from Date types in the UTC time zone. This meant that it was not possible to do grouping by date/time information in a local time zone. In versions 3.5.11 and newer, the date extraction operators (&lt;tt&gt;$year&lt;/tt&gt;, &lt;tt&gt;$month&lt;/tt&gt;, &lt;tt&gt;$day&lt;/tt&gt;, &lt;tt&gt;$hour&lt;/tt&gt;, &lt;tt&gt;$minute&lt;/tt&gt;, &lt;tt&gt;$second&lt;/tt&gt;, &lt;tt&gt;$millisecond&lt;/tt&gt;, &lt;tt&gt;$isoYear&lt;/tt&gt;, &lt;tt&gt;$isoWeekYear&lt;/tt&gt; and &lt;tt&gt;$isoDayOfWeek&lt;/tt&gt;) allow for a secondary format to specify a time zone to express a local time. This is accomplished with a new syntax in which the date operators accept an optional &lt;tt&gt;timezone&lt;/tt&gt; argument in addition to the &lt;tt&gt;date&lt;/tt&gt; argument:&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;&amp;gt; db.c.aggregate({hour: {$hour: {date: &apos;$lastUpdatedDate&apos;}}})&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;&amp;gt; db.c.aggregate({hour: {$hour: {date: &apos;$lastUpdatedDate&apos;, timezone: &apos;Europe/Amsterdam&apos;}}})&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;This does not break backwards compatibility with existing applications. The original syntax of the operators is still functional:&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;&amp;gt; db.c.aggregate({hour: {$hour: &apos;$lastUpdatedDate&apos;}})&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;&lt;b&gt;TECHNICAL DETAILS&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;The implementation of time zone support is done through &lt;a href=&quot;https://github.com/derickr/timelib&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&quot;timelib&quot;&lt;/a&gt;. Several formats for the &lt;tt&gt;timezone&lt;/tt&gt; field are allowed:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;An &lt;a href=&quot;https://en.wikipedia.org/wiki/Tz_database&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&quot;Olson Time Zone Idenfitier&quot;&lt;/a&gt;: &lt;tt&gt;America/New_York&lt;/tt&gt;, &lt;tt&gt;Europe/London&lt;/tt&gt;, etc.&lt;/li&gt;
	&lt;li&gt;A string describing an ISO 8601 time zone specification: &lt;tt&gt;-05:00&lt;/tt&gt;, &lt;tt&gt;+0445&lt;/tt&gt;, &lt;tt&gt;-03&lt;/tt&gt;, etc.&lt;/li&gt;
	&lt;li&gt;The strings &lt;tt&gt;Z&lt;/tt&gt;, &lt;tt&gt;UTC&lt;/tt&gt; and &lt;tt&gt;GMT&lt;/tt&gt;.&lt;/li&gt;
	&lt;li&gt;Or an expression that evaluates to one of the above. This allows you to fetch the time zone information from a separate field in your document.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;b&gt;ADDITIONAL CHANGES&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;The &lt;tt&gt;$dateToString&lt;/tt&gt; operator has also been updated (&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;), and the new operators &lt;tt&gt;$dateFromParts&lt;/tt&gt; and &lt;tt&gt;$dateToParts&lt;/tt&gt; (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28613&quot; title=&quot;Add the $dateToParts and $dateFromParts A/F operators&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28613&quot;&gt;&lt;del&gt;SERVER-28613&lt;/del&gt;&lt;/a&gt;), and &lt;tt&gt;$dateFromString&lt;/tt&gt; (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29208&quot; title=&quot;Add the $dateFromString A/F operator (without tz support)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29208&quot;&gt;&lt;del&gt;SERVER-29208&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29209&quot; title=&quot;Add TZ support to the new $dateFromString A/F operator&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29209&quot;&gt;&lt;del&gt;SERVER-29209&lt;/del&gt;&lt;/a&gt;) have been added, each also supporting time zones.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;h5&gt;&lt;a name=&quot;Originaldescription&quot;&gt;&lt;/a&gt;Original description&lt;/h5&gt;

&lt;p&gt;The date operators ($dayOfMonth, $dayOfWeek, $dayOfYear, $hour, $minute, $month, $week and $year) currently work for UTC. This causes the $group pipeline operator to insert certain rows in wrong bucket due to certain timezones being in another day.&lt;/p&gt;

&lt;p&gt;As an example, say you&apos;re showing website statistics for a US based company and at December 31st 2011 at 10:00 PM EST someone finally visits the website, if the aggregation framework didn&apos;t respect timezones (like it does now) it&apos;d group the data point the next day (since it&apos;s stored as 2012-01-01T02:00:00Z). Which, if you&apos;re grouping data by year is quite the error as it would look like you&apos;d have visitors from the future.&lt;/p&gt;

&lt;p&gt;Being able to set the timezone, either per query or per connection would solve this. &lt;/p&gt;</description>
                <environment></environment>
        <key id="43448">SERVER-6310</key>
            <summary>Timezone support in date operators at query time</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="derick">Derick Rethans</assignee>
                                    <reporter username="gijs@usabilla.com">Gijs Kunze</reporter>
                        <labels>
                            <label>aggregation</label>
                            <label>expression</label>
                            <label>timezone</label>
                            <label>usability</label>
                    </labels>
                <created>Thu, 5 Jul 2012 16:01:22 +0000</created>
                <updated>Tue, 16 Nov 2021 16:38:30 +0000</updated>
                            <resolved>Wed, 26 Jul 2017 10:47:59 +0000</resolved>
                                    <version>2.1.0</version>
                    <version>2.1.1</version>
                    <version>2.1.2</version>
                                    <fixVersion>3.5.11</fixVersion>
                                    <component>Aggregation Framework</component>
                                        <votes>110</votes>
                                    <watches>102</watches>
                                                                                                                <comments>
                            <comment id="1629781" author="derick" created="Mon, 24 Jul 2017 10:04:00 +0000"  >&lt;p&gt;This is related to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28611&quot; title=&quot;Add the tzExpression argument to the date extraction functions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28611&quot;&gt;&lt;del&gt;SERVER-28611&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29209&quot; title=&quot;Add TZ support to the new $dateFromString A/F operator&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29209&quot;&gt;&lt;del&gt;SERVER-29209&lt;/del&gt;&lt;/a&gt; which have been merged into master (likely for 3.5.11).&lt;/p&gt;</comment>
                            <comment id="1397411" author="bodenhaltung" created="Fri, 30 Sep 2016 11:23:17 +0000"  >&lt;p&gt;+1 too. Is there a solution without $substraction the timezone offset from usec for aggregate with group?&lt;/p&gt;</comment>
                            <comment id="1375519" author="pqvst" created="Fri, 2 Sep 2016 12:57:18 +0000"  >&lt;p&gt;For those of you working with mongodb in node, I&apos;ve created a pretty simple (&amp;lt; 50 loc) helper function that generates a $cond expression to project times from UTC to a local timezone. It correctly takes daylight savings time (and other timezone offset changes) into consideration. You can find it on github here: &lt;a href=&quot;https://github.com/pqvst/tzoffset&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/pqvst/tzoffset&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1374119" author="ygbr@mac.com" created="Wed, 31 Aug 2016 23:24:43 +0000"  >&lt;p&gt;+1000. This is a must have for generating time buckets using aggregations and dealing with dates properly on the database. Today we have to defer all those transformations to the application itself which makes it more complex and error prone since we need to do it everywhere and every time we deal with Date types.&lt;/p&gt;</comment>
                            <comment id="1374093" author="apara" created="Wed, 31 Aug 2016 22:39:58 +0000"  >&lt;p&gt;By the way, if anyone from the MongoDB team looks at this issue and thinks that the TimeZone conversion should happen in the client they would be wrong.  The result of the aggregation is physically different depending from what TimeZone the request is made.  There is no way, UI can adjust for how the aggregation was bucketed on the server.&lt;/p&gt;</comment>
                            <comment id="1374001" author="roman.kisilenko" created="Wed, 31 Aug 2016 21:22:05 +0000"  >&lt;p&gt;+1. It seems to me as well that this is a very important feature for a database.&lt;/p&gt;</comment>
                            <comment id="1373994" author="grd2345" created="Wed, 31 Aug 2016 21:18:27 +0000"  >&lt;p&gt;Seems they are not going to change it. Best to move to another database if&lt;br/&gt;
you need to get historical analytic data.&lt;/p&gt;

&lt;p&gt;On Wed, Aug 31, 2016 at 3:42 PM, Philip Bergqvist (JIRA) &amp;lt;jira@mongodb.org&amp;gt;&lt;/p&gt;




&lt;p&gt;&amp;#8211; &lt;br/&gt;
Dalum Software Solutions&lt;br/&gt;
&lt;a href=&quot;http://www.mygymsoftware.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mygymsoftware.com&lt;/a&gt;&lt;br/&gt;
Phone: 1-877-401-4567&lt;br/&gt;
Fax: 1-877-401-4567&lt;/p&gt;</comment>
                            <comment id="1373925" author="pqvst" created="Wed, 31 Aug 2016 20:41:30 +0000"  >&lt;p&gt;It&apos;s very worrying that nothing has happened with this. It would be great to know why this is such a difficult problem to solve - or why it is considered unimportant. This just seems like a CRUCIAL feature that a general purpose database should have...&lt;/p&gt;</comment>
                            <comment id="1230850" author="grd2345" created="Fri, 8 Apr 2016 21:54:27 +0000"  >&lt;p&gt;this issue forced me to switch databases to postgres as my app had a lot of&lt;br/&gt;
report and dashboards that needed to do this.&lt;/p&gt;

&lt;p&gt;On Fri, Apr 8, 2016 at 2:48 PM, Alex Paransky (JIRA) &amp;lt;jira@mongodb.org&amp;gt;&lt;/p&gt;




&lt;p&gt;&amp;#8211; &lt;br/&gt;
Dalum Software Solutions&lt;br/&gt;
&lt;a href=&quot;http://www.mygymsoftware.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mygymsoftware.com&lt;/a&gt;&lt;br/&gt;
Phone: 1-877-401-4567&lt;br/&gt;
Fax: 1-877-401-4567&lt;/p&gt;</comment>
                            <comment id="1230687" author="apara" created="Fri, 8 Apr 2016 19:47:36 +0000"  >&lt;p&gt;We just ran into this issue.  Stuart&apos;s comment hits the nail on the head:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;(Note: the various solutions for applying manual offsets are ok, but don&apos;t take into account DST across long time-range queries. We have to apply some /very/ convoluted logic to handle this and it&apos;s clearly neither performant nor easy to support as a result)&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;We are doing something similar with the following projection:&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;{ &quot;$project&quot; : { &quot;userId&quot; : &quot;$vd.ple.vd.userid&quot; , &quot;year&quot; : { &quot;$year&quot; : [ { &quot;$add&quot; : [ &quot;$vd.ts&quot; , -28800000]}]} , &quot;month&quot; : { &quot;$month&quot; : [ { &quot;$add&quot; : [ &quot;$vd.ts&quot; , -28800000]}]} , &quot;day&quot; : { &quot;$dayOfMonth&quot; : [ { &quot;$add&quot; : [ &quot;$vd.ts&quot; , -28800000]}]} , &quot;hour&quot; : { &quot;$hour&quot; : [ { &quot;$add&quot; : [ &quot;$vd.ts&quot; , -28800000]}]} , &quot;minute&quot; : { &quot;$minute&quot; : [ { &quot;$add&quot; : [ &quot;$vd.ts&quot; , -28800000]}]}}}&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;However to do this correctly, we need to know which offset to use.  To calculate the offset, we need to:&lt;/p&gt;

&lt;p&gt;1) Query the first row of the result set&lt;br/&gt;
2) Determine the offset based on the date in that row&lt;/p&gt;

&lt;p&gt;The issue comes up when the data spans DST.  This means that the offset &lt;b&gt;cannot&lt;/b&gt; be calculated statically and needs to be calculated dynamically based on &lt;b&gt;each&lt;/b&gt; date in the result set.  It would be great if there was a feature in MongoDB to convert date into local date based on some timeZone without having to deal with manually adding offsets.&lt;/p&gt;

&lt;p&gt;I believe that this is an issue only with aggregations when crossing DST.  If it was not for DST an offset solution would work fine.  Because this only concerns aggregations, the feature should be added to the aggregation pipeline.  The best way to implement this is to create a function called $localDate.  &lt;/p&gt;

&lt;p&gt;For example:&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;{$localDate : [&apos;$someTimetampField&apos;, &apos;America/Los_Angeles&apos;]}&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;Should convert the UTC date stored in $someTimestampField into the local date based on the &apos;America/Los_Angeles&apos;.  Note that the date should be properly converted relative to DST into either PST or PDT (that would be the whole point of this conversion).  Afterwards, other date functions can be applied to the result to further break down the Date into it&apos;s specific constituents for aggregation and grouping.&lt;/p&gt;

&lt;p&gt;Timezone should not be set per connection or per query as at the connection level, it would cause issues for pooled connections and in the same query different dates could require different treatment.&lt;/p&gt;

&lt;p&gt;This is a pretty serious issue as short of re-implementing aggregation in code, or using slower map-reduce in favor of aggregation pipeline are non-trivial changes to existing code.  So, I don&apos;t agree with priority of this being MINOR.&lt;/p&gt;</comment>
                            <comment id="1034161" author="stuart.hall@masternaut.com" created="Fri, 18 Sep 2015 13:43:30 +0000"  >&lt;p&gt;I can&apos;t state strongly enough how vital this functionality is to systems that cross multiple timezones. Yes, we could add multiple ISODate fields to support multiple timezones, but we frequently don&apos;t know all of the supported timezones at point of writing the data, so it&apos;s not always possible.&lt;/p&gt;

&lt;p&gt;It&apos;s a little frustrating when humble MySQL supports this, but MongoDB doesn&apos;t and it&apos;s a very hard question to answer when pressed by management about problems that arise as a result of this:&lt;br/&gt;
&lt;a href=&quot;https://dev.mysql.com/doc/refman/5.7/en/time-zone-support.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://dev.mysql.com/doc/refman/5.7/en/time-zone-support.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(Note: the various solutions for applying manual offsets are ok, but don&apos;t take into account DST across long time-range queries. We have to apply some /very/ convoluted logic to handle this and it&apos;s clearly neither performant nor easy to support as a result)&lt;/p&gt;</comment>
                            <comment id="999792" author="contact@aetium.com" created="Fri, 7 Aug 2015 20:18:16 +0000"  >&lt;p&gt;+1 The strengh of MongoDB for SaaS products is to provide analytics easily via the aggregate command and timezone support is CRITICAL for all global products.&lt;/p&gt;</comment>
                            <comment id="951163" author="sirianru@gmail.com" created="Thu, 25 Jun 2015 20:39:57 +0000"  >&lt;p&gt;Gustavo, as a workaround you can use manual $add for timezone offset like in comments above&lt;/p&gt;</comment>
                            <comment id="951143" author="gustavomanolo" created="Thu, 25 Jun 2015 20:27:40 +0000"  >&lt;p&gt;Any news about this? i&apos;ve the same problem and i don&apos;t know how to fix it. I&apos;m getting the results in UTC and i need to get the $group by results in $aggregate in the local timezone.&lt;/p&gt;</comment>
                            <comment id="934741" author="jfahnenbruck" created="Tue, 9 Jun 2015 02:00:14 +0000"  >&lt;p&gt;Anything new here?&lt;/p&gt;</comment>
                            <comment id="913078" author="grd2345" created="Wed, 13 May 2015 17:26:26 +0000"  >&lt;p&gt;Kishore, I also tried using the TZ offset but if you are trying to group data in the past, time zones mess around and get inconsistant data. What I had to do was create a DST table using moment-timezone and then determine the DST using a $cond with this table so the offset will be correct. It is an ugly hack but it works, so I am hoping mongo will step up to the plate on this and incorporate this for us.&lt;/p&gt;</comment>
                            <comment id="913057" author="kmaley@paypal.com" created="Wed, 13 May 2015 17:10:18 +0000"  >&lt;p&gt;This is important feature required, otherwise the heavy work of grouping done on database has no meaning... We overcome this issue by add TZ offset in the query&lt;/p&gt;</comment>
                            <comment id="912741" author="kaylors" created="Wed, 13 May 2015 13:33:52 +0000"  >&lt;p&gt;Facing the same issue here. Any word?&lt;/p&gt;</comment>
                            <comment id="845204" author="grd2345" created="Fri, 6 Mar 2015 20:21:58 +0000"  >&lt;p&gt;I am running into this issue also. &lt;br/&gt;
What is the status of this?&lt;/p&gt;</comment>
                            <comment id="773666" author="soapergem" created="Wed, 26 Nov 2014 20:40:16 +0000"  >&lt;p&gt;I&apos;m also wondering what the status of this is. It was first request 2&#189; years ago, and the last comment from anyone on the Mongo team is from almost a year ago. Does Mongo have any plans to introduce timezone support? I really don&apos;t think this should be classified as a &quot;minor&quot; priority item; this is critical for anyone wanting to develop enterprise applications. Doing conditional adds is hacky and not practical for any business application. We need true timezone support like any professional database would provide. Even MySQL has timezone support with the &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_convert-tz&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;CONVERT_TZ&lt;/a&gt; function. Will Mongo offer any sort of similar operator for converting a UTC date to a given timezone, and if so, what&apos;s a realistic estimate for when that will be introduced?&lt;/p&gt;</comment>
                            <comment id="553507" author="joeyespo" created="Thu, 17 Apr 2014 19:04:30 +0000"  >&lt;p&gt;We&apos;re aggregating across DST, so the offset workaround won&apos;t work. Are there any known workarounds for DST? Or, more practically, is this issue being looked at anytime soon?&lt;/p&gt;</comment>
                            <comment id="511938" author="redbeard0531" created="Fri, 7 Mar 2014 23:35:59 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mogarick&quot; class=&quot;user-hover&quot; rel=&quot;mogarick&quot;&gt;mogarick&lt;/a&gt;, It could by changing the offset based on whether it is in DST or not. However, depending on how accurate you need to be, it could get very complex. For example, are you willing to use the current DST rules or do you need to handle historic dates with the then current rules. This is part of the reason that we don&apos;t have any built-in TZ support: a complete solution is extremely complicated and requires a way to update the tables as the rules change often.&lt;/p&gt;</comment>
                            <comment id="511932" author="mogarick" created="Fri, 7 Mar 2014 23:20:54 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=redbeard0531&quot; class=&quot;user-hover&quot; rel=&quot;redbeard0531&quot;&gt;redbeard0531&lt;/a&gt; I assume the offset workaround doesn&apos;t work for daylight saving. does it?&lt;/p&gt;</comment>
                            <comment id="431389" author="redbeard0531" created="Wed, 25 Sep 2013 19:48:27 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=andrewdowds&quot; class=&quot;user-hover&quot; rel=&quot;andrewdowds&quot;&gt;andrewdowds&lt;/a&gt; Yes it will. The full, unambiguous syntax for &quot;regular&quot; agg expressions is {$opName: [arg1, arg2, ...]}. As an convenience you are allowed to omit the wrapping array when passing a single argument, but the wrapping is always allowed.&lt;/p&gt;</comment>
                            <comment id="431347" author="andrewdowds" created="Wed, 25 Sep 2013 18:59:57 +0000"  >&lt;p&gt;@Mathias Stearn,&lt;/p&gt;

&lt;p&gt;Will passing an array to $dayOfWeek to achieve the desired result continue to work when 9289 hits 2.6?&lt;/p&gt;</comment>
                            <comment id="431343" author="redbeard0531" created="Wed, 25 Sep 2013 18:50:59 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=andrewdowds&quot; class=&quot;user-hover&quot; rel=&quot;andrewdowds&quot;&gt;andrewdowds&lt;/a&gt;, My apologies. That is due to a bug (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9289&quot; title=&quot;Date operators incorrectly throw exceptions for object arguments&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9289&quot;&gt;&lt;del&gt;SERVER-9289&lt;/del&gt;&lt;/a&gt;) in the parsing of expressions that has been resolved by a refactor in git master (what will be 2.6). Unfortunately the refactor was rather extensive so I don&apos;t think it will be practical to backport to 2.4.&lt;/p&gt;

&lt;p&gt;As a work around, you can wrap the $add in an array like the following example. In 2.2 and 2.4 this is necessary when passing anything that looks like an object as the only parameter to an expression.&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;{$dayOfWeek: [ {$add:[&apos;$date&apos;, &apos;$tzOffsetMs&apos;]} ] }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="431275" author="andrewdowds" created="Wed, 25 Sep 2013 17:42:45 +0000"  >&lt;p&gt;@Mathias Stearn,&lt;/p&gt;

&lt;p&gt;I attempted to use your example above on mongodb 2.4.3:&lt;/p&gt;

&lt;p&gt; {$dayOfWeek:{$add:&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;$date&amp;#39;, &amp;#39;$tzOffsetMs&amp;#39;&amp;#93;&lt;/span&gt;}}&lt;/p&gt;

&lt;p&gt;When I attempt to use the $add operator within the context of a date operator within an aggregation query, I get an error. Below is the query as formatted by pymongo and the resulting error:&lt;/p&gt;

&lt;p&gt;OperationFailure: command SON([(&apos;aggregate&apos;, u&apos;donation_s&apos;), (&apos;pipeline&apos;, [{&apos;$match&apos;: {&apos;proj_id&apos;: ObjectId(&apos;redacted&apos;), &apos;org_id&apos;: ObjectId(&apos;redacted&apos;)}}, {&apos;$group&apos;: {&apos;_id&apos;: {&apos;day_r&apos;: {&apos;$dayOfMonth&apos;: {&apos;$add&apos;: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;$date_created&amp;#39;, -14400000.0&amp;#93;&lt;/span&gt;}}, &apos;mo_r&apos;: {&apos;$month&apos;: {&apos;$add&apos;: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;$date_created&amp;#39;, -14400000.0&amp;#93;&lt;/span&gt;}}, &apos;year_r&apos;: {&apos;$year&apos;: &lt;/p&gt;
{&apos;$add&apos;: [&apos;$date_created&apos;, -14400000.0]}
&lt;p&gt;}}, &apos;donations&apos;: &lt;/p&gt;
{&apos;$sum&apos;: &apos;$amount&apos;}
&lt;p&gt;}}, {&apos;$sort&apos;: {&apos;_id&apos;: 1}}])]) failed: exception: the $dayOfMonth operator does not accept an object as an operand&lt;/p&gt;

&lt;p&gt;Can you or someone verify that this capability actually exists in mongodb 2.4.x?  Am I using it correctly?  &lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Andrew&lt;/p&gt;</comment>
                            <comment id="427442" author="redbeard0531" created="Tue, 17 Sep 2013 21:20:05 +0000"  >&lt;p&gt;While not a 100% solution for all use cases, as of 2.4, you can now $add your timezone offset in milliseconds to a date to adjust it. This can be a fixed offset hard coded in the aggregation or be fetched from another field. For example, if you wanted to know the weekday on an event in the users&apos; timezone you could do:&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;{$dayOfWeek:{$add:[&apos;$date&apos;, &apos;$tzOffsetMs&apos;]}}&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;or even:&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;{$dayOfWeek:{$add:[&apos;$date&apos;, {$multiply:[&apos;$tzOffsetHours&apos;, 60, 60, 1000]}]}}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="405490" author="mj1856" created="Sun, 18 Aug 2013 00:11:37 +0000"  >&lt;p&gt;This was recently discussed on StackOverflow here: &lt;a href=&quot;http://stackoverflow.com/q/18287493/634824&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stackoverflow.com/q/18287493/634824&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also to note, RavenDB can do this, and has a good writeup of the problem description here: &lt;a href=&quot;http://ravendb.net/kb/61/working-with-date-and-time-in-ravendb#time-zone-conversions&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://ravendb.net/kb/61/working-with-date-and-time-in-ravendb#time-zone-conversions&lt;/a&gt; and there&apos;s another implementation that uses IANA standard time zones here: &lt;a href=&quot;https://github.com/mj1856/RavenDB-NodaTime/wiki/Indexing-and-Querying&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mj1856/RavenDB-NodaTime/wiki/Indexing-and-Querying&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am not fully up to speed on the MongoDB aggregation framework, but there would have to be some kind of timezone conversion methods available in order to achieve similar results.&lt;/p&gt;
</comment>
                            <comment id="375817" author="jarrah@argos.io" created="Mon, 8 Jul 2013 02:34:37 +0000"  >&lt;p&gt;just adding my voice to this cause - though it doesnt seem like there is any action from 10gen?&lt;/p&gt;

&lt;p&gt;same use case: our data is stored in UTC time users need to aggregate according to their local timezone. basically we need to pass timezone info along with each operator rather than assuming the zone of the data.&lt;/p&gt;</comment>
                            <comment id="356848" author="kenahoo" created="Mon, 10 Jun 2013 15:26:54 +0000"  >&lt;p&gt;I&apos;m running into this pretty badly too.  The use case is basically the same - client&apos;s data is given originally in their local timezone.  I can of course convert it to UTC for storage, but the problem is that I need to find aggregates of the data by local timezone semantics.  &lt;/p&gt;

&lt;p&gt;Like @Robin says, the required timezone isn&apos;t the server&apos;s timezone, or the querier&apos;s timezone, it&apos;s at the very least intrinsic to the data.  Ideally it should also be specifiable at query time.&lt;/p&gt;</comment>
                            <comment id="271072" author="gijs@usabilla.com" created="Wed, 20 Feb 2013 14:51:52 +0000"  >&lt;p&gt;My problem, as stated at the top, is with grouping by days. My current solution is to instead of grouping by $year, $month and $dayOfMonth I group by those values and add $hour to that, then after getting the results I parse those 4 values as being a UTC date, convert it to the desired timezone and generate the year, month and day of month values that way, afterwards I just have to manually merge the results. This means you get up to 24 times the amount of results and per returned item need to perform up to 24 merges but for small enough result sets this is doable.&lt;/p&gt;

&lt;p&gt;One issue with this approach is that it doesn&apos;t work with certain timezones which are not 60-minute offsets from UTC, there are some 30-minute and 15-minute offsets in the world. However this would lead to a small enough error that it&apos;s acceptable in our use case.&lt;/p&gt;

&lt;p&gt;Still hope we&apos;ll get a better solution for this soon(ish) but for now this approach works.&lt;/p&gt;</comment>
                            <comment id="255397" author="rthomas@squarespace.com" created="Fri, 1 Feb 2013 05:34:40 +0000"  >&lt;p&gt;We&apos;re also a paid support customer, and we&apos;d really like this feature. In fact, we need a full timezone conversion feature, not just the ability to use localtime() for whatever the mongo server&apos;s TZ setting is.&lt;/p&gt;

&lt;p&gt;I like TP Diffenbach&apos;s idea of &apos;$dayOfYear&apos;: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;$aDate&amp;#39;, true &amp;#93;&lt;/span&gt;, but in order to allow conversion to an arbitrary timezone, I suggest &apos;$dayOfYear&apos;: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;$aDate&amp;#39;, &amp;#39;US/Eastern&amp;#39;&amp;#93;&lt;/span&gt;. If the second arg is present, and is a string, look up in a cached zoneinfo db, and if it&apos;s a legit timezone, use it to make the tm struct.&lt;/p&gt;

&lt;p&gt;Perhaps boost::date_time library could be integrated to get zoneinfo db support and time-&amp;gt;tm conversion?&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.boost.org/doc/libs/1_44_0/doc/html/date_time/local_time.html#date_time.local_time.tz_database&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.boost.org/doc/libs/1_44_0/doc/html/date_time/local_time.html#date_time.local_time.tz_database&lt;/a&gt; &lt;/p&gt;</comment>
                            <comment id="208357" author="pgrinchenko@collective.com" created="Thu, 6 Dec 2012 21:07:18 +0000"  >&lt;p&gt;We really need this to be added to Aggregation Framework (we are on paid support)&lt;/p&gt;</comment>
                            <comment id="179003" author="tpdi" created="Thu, 25 Oct 2012 09:33:54 +0000"  >&lt;p&gt;I&apos;ve created a patch for optionally giving local time (server&apos;s local time) for the pipeline date expressions. Due to some limitations on the C standard library, it only supports local time, not arbitrary time zones. &lt;/p&gt;

&lt;p&gt;E.g.:&lt;br/&gt;
UTC, as before: {$project: { &quot;UTCDayOfYear&quot; : &lt;/p&gt;
{ &quot;$dayOfYear&quot; : [&quot;$aDate&quot;] }
&lt;p&gt; } }&lt;br/&gt;
UTC: {$project: { &quot;UTCDayOfYear&quot; : &lt;/p&gt;
{ &quot;$dayOfYear&quot; : [&quot;$aDate&quot;, false] }
&lt;p&gt; } }&lt;br/&gt;
local: {$project: { &quot;localDayOfYear&quot; : &lt;/p&gt;
{ &quot;$dayOfYear&quot; : [&quot;$aDate&quot;, true] }
&lt;p&gt; } }&lt;/p&gt;

&lt;p&gt;The date parts returned are compatible with what the Javacript Date non-UTC functions return, and DST is compensated for. (Compatible, not always equal, as the date expressions as currently implemented return MYSQL-equivalent values.)&lt;/p&gt;

&lt;p&gt;The patch can be found here: &lt;br/&gt;
&lt;a href=&quot;https://github.com/tpdi/mongo/commit/88ebb5b6d418d7cc2481ea4774bb3be74d76f100&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/tpdi/mongo/commit/88ebb5b6d418d7cc2481ea4774bb3be74d76f100&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="164537" author="jo" created="Fri, 14 Sep 2012 17:07:13 +0000"  >&lt;p&gt;That is the approach that I decided to take as well (do not forget to compensate for daylight saving time). If you only need to support one timezone that seems like the way to go. If anyone has another idea please share.&lt;/p&gt;</comment>
                            <comment id="164533" author="rywalker" created="Fri, 14 Sep 2012 16:49:48 +0000"  >&lt;p&gt;I&apos;ve just hit this problem today. I need to get aggregate data out of mongo based on our customer&apos;s time zone.&lt;/p&gt;

&lt;p&gt;My approach:&lt;/p&gt;

&lt;p&gt;I compute a start time and end time, in UTC, which I can pass to MongoDB. Then, I use $year, $month, and $dayOfMonth in my $project operation, which is later used in a $group operation. &lt;/p&gt;

&lt;p&gt;The problem:&lt;/p&gt;

&lt;p&gt;These date operators don&apos;t know what time zone I care about, and my data won&apos;t be grouped according to my target time zone.&lt;/p&gt;

&lt;p&gt;If there is no immediate plan for timezone support in Mongo, any advice on how I can use aggregation framework to group data by date according to a local timezone?&lt;/p&gt;

&lt;p&gt;My best idea would be pre-compute &amp;amp; write attributes in the document for what the day/month/year are according to the customer&apos;s time zone, then I could avoid using $year, $month, and $dayOfMonth operators.&lt;/p&gt;

&lt;p&gt;Does that sound like the best workaround?&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: #c11b17; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;@end_time&lt;/span&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; = ActiveSupport::TimeZone[&lt;/span&gt;&lt;span style=&quot;color: #c11b17; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;@product&lt;/span&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;.time_zone].local(date.year, date.month, date.day, &lt;/span&gt;&lt;span style=&quot;color: #0066cc; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;23&lt;/span&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;span style=&quot;color: #0066cc; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;59&lt;/span&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;span style=&quot;color: #0066cc; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;59&lt;/span&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;date -= &lt;/span&gt;&lt;span style=&quot;color: #0066cc; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2&lt;/span&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;.days&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: #c11b17; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;@start_time&lt;/span&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; = ActiveSupport::TimeZone[&lt;/span&gt;&lt;span style=&quot;color: #c11b17; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;@product&lt;/span&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;.time_zone].local(date.year, date.month, date.day)&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: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;def&lt;/span&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; data&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;  command = {&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;    aggregate: &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;events&apos;&lt;/span&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;    pipeline: [&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;      { &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$match&apos;&lt;/span&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; =&amp;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;        product_id: &lt;/span&gt;&lt;span style=&quot;color: #c11b17; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;@product&lt;/span&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;.id,&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;        occurred_at: {&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;          &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$gte&apos;&lt;/span&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; =&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #c11b17; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;@start_time&lt;/span&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;          &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$lte&apos;&lt;/span&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; =&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #c11b17; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;@end_time&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;          }&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;        }&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;      },&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;      { &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$project&apos;&lt;/span&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; =&amp;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;        _id: &lt;/span&gt;&lt;span style=&quot;color: #0066cc; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;0&lt;/span&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;        action: &lt;/span&gt;&lt;span style=&quot;color: #0066cc; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;1&lt;/span&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;        date: {&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;          year: {&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$year&apos;&lt;/span&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; =&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$occurred_at&apos;&lt;/span&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;          month: {&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$month&apos;&lt;/span&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; =&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$occurred_at&apos;&lt;/span&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;          day: {&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$dayOfMonth&apos;&lt;/span&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; =&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$occurred_at&apos;&lt;/span&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;          }&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;        }&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;      },&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;      { &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$group&apos;&lt;/span&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; =&amp;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;        _id: { &lt;/span&gt;&lt;span style=&quot;color: #2B91AF; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;:date&lt;/span&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; =&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$date&apos;&lt;/span&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;span style=&quot;color: #2B91AF; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;:action&lt;/span&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; =&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$action&apos;&lt;/span&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;        count: { &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$sum&apos;&lt;/span&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; =&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0066cc; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;1&lt;/span&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;        }&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;      },&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;        { &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$sort&apos;&lt;/span&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; =&amp;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;          &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;_id.date.year&apos;&lt;/span&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; =&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0066cc; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;1&lt;/span&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;          &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;_id.date.month&apos;&lt;/span&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; =&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0066cc; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;1&lt;/span&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;          &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;_id.date.day&apos;&lt;/span&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; =&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0066cc; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;1&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;        }&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;      },&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;      { &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$group&apos;&lt;/span&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; =&amp;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;        _id: &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$_id.date&apos;&lt;/span&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;        events: { &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$push&apos;&lt;/span&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; =&amp;gt; { action: &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$_id.action&apos;&lt;/span&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;, count: &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;$count&apos;&lt;/span&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;        }&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;      }&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;    ]&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;  }&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;  Mongoid.default_session.command(command)[&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;result&apos;&lt;/span&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;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="162856" author="gijs@usabilla.com" created="Tue, 11 Sep 2012 08:01:42 +0000"  >&lt;p&gt;While date arithmetic could certainly help, I don&apos;t think it&apos;s good enough, you&apos;d have to do conditional arithmetic based on whether a date falls in daylight savings time (assuming the current timezone uses dst) which could become very complex if you aggregate data over multiple years. So I&apos;d prefer real timezone support.&lt;/p&gt;</comment>
                            <comment id="156715" author="joe.davis@servicenow.com" created="Sat, 25 Aug 2012 21:52:37 +0000"  >&lt;p&gt;This would be very useful for us as well, we cannot group by date components using a company&apos;s timezone (think MSP where we have a platform that stores data for N companies).&lt;/p&gt;

&lt;p&gt;MySQL, Oracle, etc all have this.  See &quot;date_sub&quot; function in mysql:&lt;br/&gt;
&lt;a href=&quot;http://www.w3schools.com/sql/func_date_sub.asp&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.w3schools.com/sql/func_date_sub.asp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;SQL Server &quot;dateAdd&quot;:&lt;br/&gt;
&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms186819.aspx&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://msdn.microsoft.com/en-us/library/ms186819.aspx&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                                        </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="410574">DOCS-10610</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="303542">SERVER-25243</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="22439">SERVER-3882</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="538428">RUBY-1464</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="343402">TOOLS-1589</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="10970">SERVER-465</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>39.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000XUBQXIA5, 500A000000UaYscIAF]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 5 Jul 2012 17:05:55 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 29 weeks, 2 days 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/WRITING-1922'>WRITING-1922</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_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>
                            6 years, 29 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>apara</customfieldvalue>
            <customfieldvalue>andrewdowds</customfieldvalue>
            <customfieldvalue>Bodenhaltung</customfieldvalue>
            <customfieldvalue>derick</customfieldvalue>
            <customfieldvalue>grd2345</customfieldvalue>
            <customfieldvalue>gijs@usabilla.com</customfieldvalue>
            <customfieldvalue>soapergem</customfieldvalue>
            <customfieldvalue>gustavomanolo</customfieldvalue>
            <customfieldvalue>jarrah@argos.io</customfieldvalue>
            <customfieldvalue>jfahnenbruck</customfieldvalue>
            <customfieldvalue>joe.davis@servicenow.com</customfieldvalue>
            <customfieldvalue>joeyespo</customfieldvalue>
            <customfieldvalue>jo</customfieldvalue>
            <customfieldvalue>kenahoo</customfieldvalue>
            <customfieldvalue>kmaley@paypal.com</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
            <customfieldvalue>mj1856</customfieldvalue>
            <customfieldvalue>pgrinchenko@collective.com</customfieldvalue>
            <customfieldvalue>pqvst</customfieldvalue>
            <customfieldvalue>contact@aetium.com</customfieldvalue>
            <customfieldvalue>mogarick</customfieldvalue>
            <customfieldvalue>rthomas@squarespace.com</customfieldvalue>
            <customfieldvalue>roman.kisilenko</customfieldvalue>
            <customfieldvalue>rywalker</customfieldvalue>
            <customfieldvalue>kaylors</customfieldvalue>
            <customfieldvalue>stuart.hall@masternaut.com</customfieldvalue>
            <customfieldvalue>tpdi</customfieldvalue>
            <customfieldvalue>sirianru@gmail.com</customfieldvalue>
            <customfieldvalue>ygbr@mac.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnxdj:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4495</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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="13641"><![CDATA[Approved]]></customfieldvalue>

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

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