<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: Date/time localization</title>
  <link>http://www.activecollab.com/forums/topic/1870/</link>
  <description>Recent posts on topic: Date/time localization</description>
  <dc:language>en-us</dc:language>
  <pubDate>Mon, 08 Sep 2008 12:16:57 UTC</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/8723/#post8723</link>
    <guid>http://www.activecollab.com/forums/post/8723/#post8723</guid>
    <title>Post #2 by Lovel</title>
    <dc:creator>Lovel</dc:creator>
    <description><![CDATA[<p>It's my hack (for activeCollab 0.7.1), you need php with iconv:<br />
1. open activecollab/environment/classes/localization/Localization.class.php <br />
2. Replace:<br />
 a) private $datetime_format = 'M d. Y H:i'; <br />
     to <br />
     private $datetime_format = '%b %d. %Y %H:%M';<br />
 b) private $date_format = 'M d. Y'; <br />
     to <br />
     private $date_format = '%b %d. %Y';<br />
 c) private $descriptive_date_format = 'l, j F';<br />
     to <br />
     private $descriptive_date_format = '%A, %m %B';<br />
 d) private $time_format = 'H:i';<br />
     to <br />
     private $time_format = '%H:%i';<br />
3. Find function loadSettings($locale, $languages_dir)  <br />
    and add line:<br />
    setlocale(LC_TIME, 'russian');<br />
    (of course you need replace 'russian' to you locale, see e.g. http://msdn2.microsoft.com/en-us/library/39cwe7zf(VS.71).aspx for windows locales)<br />
4. Find function formatDate<br />
    and replace <br />
    return strftime($this-&gt;date_format, $date-&gt;getTimestamp() + ($timezone * 3600));<br />
    to<br />
    return iconv('windows-1251', 'UTF-8', strftime($this-&gt;date_format, $date-&gt;getTimestamp() + ($timezone * 3600)));<br />
5. Find function formatDescriptiveDate<br />
    and replace <br />
    return strftime($this-&gt;descriptive_date_format, $date-&gt;getTimestamp() + ($timezone * 3600));<br />
    to<br />
    return iconv('windows-1251', 'UTF-8', strftime($this-&gt;descriptive_date_format, $date-&gt;getTimestamp() + ($timezone * 3600)));<br />
6. Find function formatDateTime<br />
    and replace <br />
    return strftime($this-&gt;datetime_format, $date-&gt;getTimestamp() + ($timezone * 3600));<br />
    to<br />
    return iconv('windows-1251', 'UTF-8', strftime($this-&gt;datetime_format, $date-&gt;getTimestamp() + ($timezone * 3600)));<br />
7. Find function DateTimeValue<br />
    and replace <br />
    return strftime($this-&gt;time_format, $date-&gt;getTimestamp() + ($timezone * 3600));<br />
    to<br />
    return iconv('windows-1251', 'UTF-8', strftime($this-&gt;time_format, $date-&gt;getTimestamp() + ($timezone * 3600)));<br />
<br />
In steps 4-7 you need replace 'windows-1251' with you locale.<br />
8. It's done! Hope i write all correctly.<br />
<br />
<br />
 </p>]]></description>
    <pubDate>Thu, 13 Sep 2007 14:11:41 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/8721/#post8721</link>
    <guid>http://www.activecollab.com/forums/post/8721/#post8721</guid>
    <title>Post #1 by Lovel</title>
    <dc:creator>Lovel</dc:creator>
    <description><![CDATA[<p>It's look like '(Tuesday, 25 September - осталось 11 дней)'. activeCollab use date() to display date/time instead strftime() to display localized strings.<br />
I''ll make hack to display localized date/time.</p>]]></description>
    <pubDate>Thu, 13 Sep 2007 13:15:32 UTC</pubDate>
  </item>
</channel>
</rss>