<?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>zend_date &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/zend_date/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>Zend_Date with dates before 1901</title>
		<link>/2009/05/12/zend_date-with-dates-before-1901/</link>
		<comments>/2009/05/12/zend_date-with-dates-before-1901/#respond</comments>
		<pubDate>Tue, 12 May 2009 12:30:58 +0000</pubDate>
		<dc:creator><![CDATA[stoimen]]></dc:creator>
				<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[zend_date]]></category>

		<guid isPermaLink="false">/?p=562</guid>
		<description><![CDATA[Zend_Date Zend_Date is the Zend Framework module for manipulation of dates. It gives several advantages. Everybody how has dealed with dates knows that built in PHP date function cannot manage dates before 1901. With that kind of problems Zend_Date is pretty fine. How to do that If you have only Zend_Date::set($timestamp); is not enough. The &#8230; <a href="/2009/05/12/zend_date-with-dates-before-1901/" class="more-link">Continue reading <span class="screen-reader-text">Zend_Date with dates before 1901</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/04/28/zend_datesetoptions-and-format_type-in-zend-framework-1-10-3/" rel="bookmark" title="Zend_Date::setOptions and format_type in Zend Framework 1.10.3">Zend_Date::setOptions and format_type in Zend Framework 1.10.3 </a></li>
<li><a href="/2010/01/22/zend_date-make-it-work-and-benefit-with-locales/" rel="bookmark" title="Zend_Date &#8211; make it work and benefit with locales">Zend_Date &#8211; make it work and benefit with locales </a></li>
<li><a href="/2009/05/12/flex-3-compare-two-dates/" rel="bookmark" title="Flex 3: compare two dates">Flex 3: compare two dates </a></li>
<li><a href="/2011/11/04/how-to-check-if-a-date-is-more-or-less-than-a-month-ago-with-php/" rel="bookmark" title="How to Check if a Date is More or Less Than a Month Ago with PHP">How to Check if a Date is More or Less Than a Month Ago with PHP </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>Zend_Date</h2>
<p>Zend_Date is the Zend Framework module for manipulation of dates. It gives several advantages. Everybody how has dealed with dates knows that built in PHP date function cannot manage dates before 1901. With that kind of problems Zend_Date is pretty fine.</p>
<h2>How to do that</h2>
<p>If you have only</p>
<blockquote><p>Zend_Date::set($timestamp);</p></blockquote>
<p>is not enough. The timestamp is an int representation and the framework cannot get the timezone from that and trows an error.</p>
<h2>The simple way to solve the problem</h2>
<p>Replace the line above with these:<span id="more-562"></span></p>
<blockquote><p>$date = new Zend_Date($timestamp);</p>
<p>$date-&gt;setTimezone(&#8216;Europe/Paris&#8217;);</p>
<p>print $date-&gt;toString(&#8216;d M y&#8217;);</p></blockquote>
<p>Now everything should be in place.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/04/28/zend_datesetoptions-and-format_type-in-zend-framework-1-10-3/" rel="bookmark" title="Zend_Date::setOptions and format_type in Zend Framework 1.10.3">Zend_Date::setOptions and format_type in Zend Framework 1.10.3 </a></li>
<li><a href="/2010/01/22/zend_date-make-it-work-and-benefit-with-locales/" rel="bookmark" title="Zend_Date &#8211; make it work and benefit with locales">Zend_Date &#8211; make it work and benefit with locales </a></li>
<li><a href="/2009/05/12/flex-3-compare-two-dates/" rel="bookmark" title="Flex 3: compare two dates">Flex 3: compare two dates </a></li>
<li><a href="/2011/11/04/how-to-check-if-a-date-is-more-or-less-than-a-month-ago-with-php/" rel="bookmark" title="How to Check if a Date is More or Less Than a Month Ago with PHP">How to Check if a Date is More or Less Than a Month Ago with PHP </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/05/12/zend_date-with-dates-before-1901/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
