<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Mon May 20 15:49:17 UTC 2013

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 add field=key&field=summary to the URL of your request.
For example:
http://www.doctrine-project.org/jira/si/jira.issueviews:issue-xml/MODM-158/MODM-158.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://www.doctrine-project.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.7</version>
        <build-number>850</build-number>
        <build-date>21-02-2013</build-date>
    </build-info>

<item>
            <title>[MODM-158] Doctrine\ODM\MongoDB\Mapping\Type\TimestampType should use MongoDate instead of MongoTimestamp</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-158</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;When using the @Timestamp mapping type for a class Doctrine uses MongoTimestamp and it creates very incorrect times in the DB. According to PHP documentation, you should not use MongoTimestamp for creating timestamps, instead MongoDate should be used.&lt;/p&gt;

&lt;p&gt;I&apos;ve attached a patch that changes it to MongoDate and this works splendid when you assign a timestamp to a @Timestamp value&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;	/**
	 * @Field(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;timestamp&quot;&lt;/span&gt;)
	 */
	&lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $created_on;

	/**
	 * @Field(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;timestamp&quot;&lt;/span&gt;)
	 */
	&lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $updated_on;

	&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct($options = NULL)
	{
		$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;created_on = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;updated_on = time();
		parent::__construct($options);
	}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


</description>
                <environment>OS 10.7&lt;br/&gt;
&lt;br/&gt;
PHP 5.3.6 with Suhosin-Patch (cli) (built: Sep  8 2011 19:34:00) &lt;br/&gt;
Copyright (c) 1997-2011 The PHP Group&lt;br/&gt;
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;with Xdebug v2.1.2, Copyright (c) 2002-2011, by Derick Rethans</environment>
            <key id="13217">MODM-158</key>
            <summary>Doctrine\ODM\MongoDB\Mapping\Type\TimestampType should use MongoDate instead of MongoTimestamp</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="nvoyageur">Shane A. Stillwell</reporter>
                        <labels>
                    </labels>
                <created>Thu, 24 Nov 2011 18:00:21 +0000</created>
                <updated>Thu, 24 Nov 2011 18:00:21 +0000</updated>
                                    <version>1.0.0BETA3</version>
                                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                    <attachment id="11117" name="mongodate.patch" size="561" author="nvoyageur" created="Thu, 24 Nov 2011 18:00:21 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>