<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Stephen Gray&#039;s dev blog &#187; date</title>
	<atom:link href="http://blog.s-gray.com/tag/date/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.s-gray.com</link>
	<description>e-commerce and integrations</description>
	<lastBuildDate>Sun, 17 Jan 2010 09:32:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>symfony Unable to parse default value as date/time value: &#039;0000-00-00 00:00:00&#039;</title>
		<link>http://blog.s-gray.com/2008/09/26/symfony-unable-to-parse-default-value-as-datetime-value-0000-00-00-000000/</link>
		<comments>http://blog.s-gray.com/2008/09/26/symfony-unable-to-parse-default-value-as-datetime-value-0000-00-00-000000/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 13:53:19 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[propel]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://colourgray.wordpress.com/?p=114</guid>
		<description><![CDATA[Fix for symfony error "Unable to parse default value as date/time value: '0000-00-00 00:00:00'"]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just made a change to a symfony project&#8217;s schema.yml file and tried to rebuild the model and came across this error message:</p>
<p>Unable to parse default value as date/time value: &#8216;0000-00-00 00:00:00&#8242;</p>
<p>Which was stopping the build. After looking at various places, it seems this is a problem with Creole, (propel&#8217;s DBAL).</p>
<p>Before PHP v5.2.4, you could do a strtotime on a value of 000-00-00 00:00:00 and you would get a weird date, something in 1999. Not sure why :S Since the 5.2.4 update however this bug has been fixed and you will now get boolean false returned.</p>
<p>The symfony plugin sfGuard, which is widely used, uses 0000-00-00 00:00:00 as a default value in it&#8217;s schema for some fields and this will now cause problems. To fix this, edit sfGuard&#8217;s schema and change those default values to something like 1970-01-01 and that should do the trick.</p>
<p>Unfortunately Creole isn&#8217;t actively maintained anymore so it&#8217;s not likely to be updated soon to fix this.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.s-gray.com/2008/09/26/symfony-unable-to-parse-default-value-as-datetime-value-0000-00-00-000000/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

