<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sun, 19 May 2013 08:37:35 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sudheer Satyanarayana's Blog: Zend Date Class Constants Cheat Sheet]]></title>
      <guid>http://www.phpdeveloper.org/news/15645</guid>
      <link>http://www.phpdeveloper.org/news/15645</link>
      <description><![CDATA[<p>
<i>Sudheer Satyanarayana</i> has provided <a href="http://techchorus.net/zend-date-class-constants-cheat-sheet">a handy cheat sheet</a> for those using the Zend_Date component of the Zend Framework listing the default values of the constants it provides.
</p>
<blockquote>
Date and time handling in general is a problem in programming. For PHP programmers, there's a good library out there that performs all the difficult tasks and provides convenient APIs. Zend_Date has several constants defined. It is good to know what each one of them represents.
</blockquote>
<p>
You can either come back to <a href="http://techchorus.net/zend-date-class-constants-cheat-sheet">this post</a> if you need a reference or you can <a href="http://techchorus.net/downloads/cheat-sheets/zend-date-constants-cheat-sheet-techchorus.pdf">download the PDF</a> and have it right at your fingertips.
</p>]]></description>
      <pubDate>Tue, 28 Dec 2010 10:04:21 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Eran Galperin's Blog: On the pitfalls of date validation with the Zend Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/14685</guid>
      <link>http://www.phpdeveloper.org/news/14685</link>
      <description><![CDATA[<p>
On his techfounder.net blog today <i>Eran Galperin</i> talks about one of the <a href="http://www.techfounder.net/2010/06/21/on-the-pitfalls-of-date-validation-with-the-zend-framework">issues you might currently see with the date validation</a> in your Zend Framework application - a problem in the Zend_Validation_Date component related to its use of Zend_Locale.
</p>
<blockquote>
Zend_Date tries to validate dates according to a given format (with a default fallback). The dangerous behavior is that it tries to convert the given format to a localized format using Zend_Locale. Zend_Locale attempts to detect automatically the locale of the requesting client, and it appears that on the machines that were exhibiting the bug, a different locale was determined than those I was testing it on.
</blockquote>
<p>
His problem was when the method tried to parse a non-localized date format and ended up converting it based on the local machine's locale settings. To correct the issue, since he didn't really need the autodetect local feature anyway, he just manually set the locale in his bootstrap via a registry setting.
</p>]]></description>
      <pubDate>Tue, 22 Jun 2010 12:58:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Framework By Examples: Handling dates and times (Zend_Date)]]></title>
      <guid>http://www.phpdeveloper.org/news/13893</guid>
      <link>http://www.phpdeveloper.org/news/13893</link>
      <description><![CDATA[<p>
The Zend Framework By Examples site has <a href="http://zend-framework-examples.blogspot.com/2009/12/date.html">posted a recent tutorial</a> about using the Zend_Date component of the Zend Framework to work with dates and times in your PHP applications.
</p>
<blockquote>
In this example, we get or set dates in different timezones. We display parts of dates and times in various formats. We also get information on sunrise and sunset in several locations.
</blockquote>
<p>
They also incorporate other components in the examples including Zend_Cache, Zend_Locate and Zend_Registry. Their examples show how to check the locale, verify the timezone and figure out a "date from now". Complete code is included - it's not the best method to handle some parts of the example, but it's a rough guide in the right direction.
</p>]]></description>
      <pubDate>Fri, 22 Jan 2010 11:09:45 -0600</pubDate>
    </item>
  </channel>
</rss>
