<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: TaskFreak hacking: changing first day of week to Monday</title>
	<atom:link href="http://www.divideandconquer.se/2009/08/27/taskfreak-hacking-changing-first-day-of-week-to-monday/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.divideandconquer.se/2009/08/27/taskfreak-hacking-changing-first-day-of-week-to-monday/</link>
	<description>David's Software Development Blog</description>
	<lastBuildDate>Thu, 15 Sep 2011 10:38:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: alinux</title>
		<link>http://www.divideandconquer.se/2009/08/27/taskfreak-hacking-changing-first-day-of-week-to-monday/comment-page-1/#comment-517</link>
		<dc:creator>alinux</dc:creator>
		<pubDate>Tue, 06 Oct 2009 13:51:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.divideandconquer.se/?p=530#comment-517</guid>
		<description>Hello 

So ... 

calendar-setup.js
---------------------
---[find]---
param_default(&quot;ifFormat&quot;,&quot;%d/%m/%y&quot;);
---[replace]---
param_default(&quot;ifFormat&quot;,&quot;%d-%m-%y %H:%i:%s&quot;);
---[find]---
param_default(&quot;daFormat&quot;,&quot;%d %b %y&quot;);
---[replace]---
param_default(&quot;daFormat&quot;,&quot;%d-%m-%y %H:%i:%s&quot;);

---[find]---
param_default(&quot;showsTime&quot;,false);
---[replace]---
param_default(&quot;showsTime&quot;,true);


calendar-setup.php
-------------------

---[find]---
param_default(&quot;ifFormat&quot;,&quot;&quot;);
---[replace]---
param_default(&quot;ifFormat&quot;,&quot;&quot;);
---[find]---
param_default(&quot;daFormat&quot;,&quot;%d %b %y&quot;);
---[replace]---
param_default(&quot;daFormat&quot;,&quot;%d-%m-%y %H:%i:%s&quot;);


---[find]---
param_default(&quot;showsTime&quot;,false);
---[replace]---
param_default(&quot;showsTime&quot;,true);


config.php
-----------

---[find]---
define(&quot;TZN_DATE_SHT&quot;,&quot;%d %b %y&quot;);
define(&quot;TZN_DATE_SHX&quot;,&quot;%a %d %b %y&quot;);
define(&quot;TZN_DATE_LNG&quot;,&quot;%d %B %Y&quot;);
define(&quot;TZN_DATE_LNX&quot;,&quot;%A %d %B %Y&quot;);
define(&quot;TZN_DATETIME_EUR&quot;,&quot;%d/%m/%y %H:%M&quot;);
define(&quot;TZN_DATETIME_USA&quot;,&quot;%m/%d/%y %I:%M%p&quot;);
define(&quot;TZN_DATETIME_SHT&quot;,&quot;%d %b %y %H:%M&quot;);
define(&quot;TZN_DATETIME_SHX&quot;,&quot;%a %d %b %y %H:%M&quot;);
define(&quot;TZN_DATETIME_LNG&quot;,&quot;%d %B %Y, %H:%M&quot;);
define(&quot;TZN_DATETIME_LNX&quot;,&quot;%A %d %B %Y, %H:%M&quot;);
---[replace]---
define(&quot;TZN_DATE_SHT&quot;,&quot;%d-%m-%y&quot;);
define(&quot;TZN_DATE_SHX&quot;,&quot;%d-%m-%y&quot;);
define(&quot;TZN_DATE_LNG&quot;,&quot;%d-%m-%y&quot;);
define(&quot;TZN_DATE_LNX&quot;,&quot;%d-%m-%y&quot;);
define(&quot;TZN_DATETIME_EUR&quot;,&quot;%d-%m-%y %H:%M:%S&quot;);
define(&quot;TZN_DATETIME_USA&quot;,&quot;%d-%m-%y %H:%M:%S&quot;);
define(&quot;TZN_DATETIME_SHT&quot;,&quot;%a %d %b %Y %H:%M&quot;);
define(&quot;TZN_DATETIME_SHX&quot;,&quot;%a %d %b %Y %H:%M:%S&quot;);
define(&quot;TZN_DATETIME_LNG&quot;,&quot;%d-%m-%y %H:%M:%S&quot;);
define(&quot;TZN_DATETIME_LNX&quot;,&quot;%d-%m-%y %H:%M:%S&quot;);


pkg_project.php
----------------

---[find]---
&#039;deadlineDate&#039;      =&gt; &#039;DTE&#039;,
---[replace]---
&#039;deadlineDate&#039;      =&gt; &#039;DTM&#039;,

---[find]---
    function getDeadline($short=false) {
        if (ereg(&#039;(9999&#124;0000)&#039;,$this-&gt;deadlineDate)) {
			return &#039;-&#039;;
		} else {
			$dead = strtotime($this-&gt;deadlineDate);
			$diff = $dead - intval(PRJ_DTE_NOW) ;
			if ($diff itemStatus-&gt;statusKey &lt; FRK_STATUS_LEVELS) {
					return &#039;&#039;.$this-&gt;getDte(&#039;deadlineDate&#039;,$format).&#039;&#039;;
				} else {
					return &#039;&#039;.$this-&gt;getDte(&#039;deadlineDate&#039;,$format).&#039;&#039;;
				}
			} else if ($diff == 0) {
				if (@constant(&#039;FRK_DATEDIFF_MODE&#039;) == &#039;date&#039;) {
					return &#039;&#039;.$this-&gt;getDte(&#039;deadlineDate&#039;,($short)?&#039;SHT&#039;:&#039;SHX&#039;,&#039;&#039;).&#039;&#039;;
				} else {
					return &#039;&#039;.$GLOBALS[&#039;langTznDate&#039;][&#039;today&#039;].&#039;&#039;;
				}
			} else if ($short) {
                $diff = $diff / 3600 / 24;
				switch (@constant(&#039;FRK_DATEDIFF_MODE&#039;)) {
				case &#039;day&#039;:
					if (@constant(&#039;FRK_DATEDIFF_TOMORROW&#039;) &amp;&amp; $diff == 1) {
						return $GLOBALS[&#039;langTznDate&#039;][&#039;tomorrow&#039;];
					} else if ($diff &lt; 7) {
					    $day = strtolower(date(&#039;l&#039;,$dead));
					    if (array_key_exists($day,$GLOBALS[&#039;langTznDate&#039;])) {
					       $day = ucfirst($GLOBALS[&#039;langTznDate&#039;][$day]);
					    }
					    return &#039;&#039;.ucFirst($day).&#039;&#039;;
					} else {
					    return &#039;&#039;
							.$this-&gt;getDte(&#039;deadlineDate&#039;,($short)?&#039;SHT&#039;:&#039;SHX&#039;,&#039;&#039;)
							.&#039;&#039;;
					}
					break;
				case &#039;diff&#039;:
					switch($diff) {
						case &#039;1&#039;:
							if (@constant(&#039;FRK_DATEDIFF_TOMORROW&#039;)) {
								return $GLOBALS[&#039;langTznDate&#039;][&#039;tomorrow&#039;];
							} else {
								return &#039;1 &#039;.$GLOBALS[&#039;langTznDate&#039;][&#039;day&#039;];
							}
							break;
						case &#039;2&#039;:
						case &#039;3&#039;:
						case &#039;4&#039;:
						case &#039;5&#039;:
						case &#039;6&#039;:
							return $diff.&#039; &#039;.$GLOBALS[&#039;langTznDate&#039;][&#039;dasy&#039;];
							break;
						default:
							return &#039;&#039;
								.$this-&gt;getDte(&#039;deadlineDate&#039;,($short)?&#039;SHT&#039;:&#039;SHX&#039;,&#039;&#039;)
								.&#039;&#039;;
							break;
					}
					break;
				default:
					return &#039;&#039;
						.$this-&gt;getDte(&#039;deadlineDate&#039;,&#039;SHT&#039;,&#039;&#039;)
						.&#039;&#039;;
					break;
				}
            } else {
                return &#039;&#039;.$this-&gt;getDte(&#039;deadlineDate&#039;,&#039;SHX&#039;).&#039;&#039;; 
            }
        }
    }
---[replace]---
    function getDeadline($short=false) {
        if (ereg(&#039;(9999&#124;0000)&#039;,$this-&gt;deadlineDate)) {
			return &#039;-&#039;;
		} else {
			$dead = strtotime($this-&gt;deadlineDate);
			$diff = $dead - intval(PRJ_DTE_NOW) ;
			if ($diff itemStatus-&gt;statusKey &lt; FRK_STATUS_LEVELS) {
					return &#039;&#039;.$this-&gt;getDtm(&#039;deadlineDate&#039;,$format).&#039;&#039;;
				} else {
					return &#039;&#039;.$this-&gt;getDtm(&#039;deadlineDate&#039;,$format).&#039;&#039;;
				}
			} else if ($diff == 0) {
				if (@constant(&#039;FRK_DATEDIFF_MODE&#039;) == &#039;date&#039;) {
					return &#039;&#039;.$this-&gt;getDtm(&#039;deadlineDate&#039;,($short)?&#039;SHT&#039;:&#039;SHX&#039;,&#039;&#039;).&#039;&#039;;
				} else {
					return &#039;&#039;.$GLOBALS[&#039;langTznDate&#039;][&#039;today&#039;].&#039;&#039;;
				}
			} else if ($short) {
                $diff = $diff / 3600 / 24;
				switch (@constant(&#039;FRK_DATEDIFF_MODE&#039;)) {
				case &#039;day&#039;:
					if (@constant(&#039;FRK_DATEDIFF_TOMORROW&#039;) &amp;&amp; $diff == 1) {
						return $GLOBALS[&#039;langTznDate&#039;][&#039;tomorrow&#039;];
					} else if ($diff &lt; 7) {
					    $day = strtolower(date(&#039;l&#039;,$dead));
					    if (array_key_exists($day,$GLOBALS[&#039;langTznDate&#039;])) {
					       $day = ucfirst($GLOBALS[&#039;langTznDate&#039;][$day]);
					    }
					    return &#039;&#039;.ucFirst($day).&#039;&#039;;
					} else {
					    return &#039;&#039;
							.$this-&gt;getDtm(&#039;deadlineDate&#039;,($short)?&#039;SHT&#039;:&#039;SHX&#039;,&#039;&#039;)
							.&#039;&#039;;
					}
					break;
				case &#039;diff&#039;:
					switch($diff) {
						case &#039;1&#039;:
							if (@constant(&#039;FRK_DATEDIFF_TOMORROW&#039;)) {
								return $GLOBALS[&#039;langTznDate&#039;][&#039;tomorrow&#039;];
							} else {
								return &#039;1 &#039;.$GLOBALS[&#039;langTznDate&#039;][&#039;day&#039;];
							}
							break;
						case &#039;2&#039;:
						case &#039;3&#039;:
						case &#039;4&#039;:
						case &#039;5&#039;:
						case &#039;6&#039;:
							return $diff.&#039; &#039;.$GLOBALS[&#039;langTznDate&#039;][&#039;dasy&#039;];
							break;
						default:
							return &#039;&#039;
								.$this-&gt;getDtm(&#039;deadlineDate&#039;,($short)?&#039;SHT&#039;:&#039;SHX&#039;,&#039;&#039;)
								.&#039;&#039;;
							break;
					}
					break;
				default:
					return &#039;&#039;
						.$this-&gt;getDtm(&#039;deadlineDate&#039;,&#039;SHT&#039;,&#039;&#039;)
						.&#039;&#039;;
					break;
				}
            } else {
                return &#039;&#039;.$this-&gt;getDtm(&#039;deadlineDate&#039;,&#039;SHX&#039;).&#039;&#039;; 
            }
        }
    }

tzn_generic.php
-----------------

---[find]---
if (@constant(&#039;TZN_DATE_US_FORMAT&#039;)) {
    define(&quot;TZN_DATE_FRM&quot;,&quot;%m/%d/%y&quot;);	// US format 
} else {
    define(&quot;TZN_DATE_FRM&quot;,&quot;%d/%m/%y&quot;);	// rest of the world dd/mm
}
---[replace]---
if (@constant(&#039;TZN_DATE_US_FORMAT&#039;)) {
    define(&quot;TZN_DATE_FRM&quot;,&quot;%Y-%m-%d&quot;);	// US format 
} else {
    define(&quot;TZN_DATE_FRM&quot;,&quot;%Y-%m-%d %H:%M:%S&quot;);	// rest of the world dd/mm 
}



alinux</description>
		<content:encoded><![CDATA[<p>Hello </p>
<p>So &#8230; </p>
<p>calendar-setup.js<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
&#8212;[find]&#8212;<br />
param_default(&#8220;ifFormat&#8221;,&#8221;%d/%m/%y&#8221;);<br />
&#8212;[replace]&#8212;<br />
param_default(&#8220;ifFormat&#8221;,&#8221;%d-%m-%y %H:%i:%s&#8221;);<br />
&#8212;[find]&#8212;<br />
param_default(&#8220;daFormat&#8221;,&#8221;%d %b %y&#8221;);<br />
&#8212;[replace]&#8212;<br />
param_default(&#8220;daFormat&#8221;,&#8221;%d-%m-%y %H:%i:%s&#8221;);</p>
<p>&#8212;[find]&#8212;<br />
param_default(&#8220;showsTime&#8221;,false);<br />
&#8212;[replace]&#8212;<br />
param_default(&#8220;showsTime&#8221;,true);</p>
<p>calendar-setup.php<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>&#8212;[find]&#8212;<br />
param_default(&#8220;ifFormat&#8221;,&#8221;");<br />
&#8212;[replace]&#8212;<br />
param_default(&#8220;ifFormat&#8221;,&#8221;");<br />
&#8212;[find]&#8212;<br />
param_default(&#8220;daFormat&#8221;,&#8221;%d %b %y&#8221;);<br />
&#8212;[replace]&#8212;<br />
param_default(&#8220;daFormat&#8221;,&#8221;%d-%m-%y %H:%i:%s&#8221;);</p>
<p>&#8212;[find]&#8212;<br />
param_default(&#8220;showsTime&#8221;,false);<br />
&#8212;[replace]&#8212;<br />
param_default(&#8220;showsTime&#8221;,true);</p>
<p>config.php<br />
&#8212;&#8212;&#8212;&#8211;</p>
<p>&#8212;[find]&#8212;<br />
define(&#8220;TZN_DATE_SHT&#8221;,&#8221;%d %b %y&#8221;);<br />
define(&#8220;TZN_DATE_SHX&#8221;,&#8221;%a %d %b %y&#8221;);<br />
define(&#8220;TZN_DATE_LNG&#8221;,&#8221;%d %B %Y&#8221;);<br />
define(&#8220;TZN_DATE_LNX&#8221;,&#8221;%A %d %B %Y&#8221;);<br />
define(&#8220;TZN_DATETIME_EUR&#8221;,&#8221;%d/%m/%y %H:%M&#8221;);<br />
define(&#8220;TZN_DATETIME_USA&#8221;,&#8221;%m/%d/%y %I:%M%p&#8221;);<br />
define(&#8220;TZN_DATETIME_SHT&#8221;,&#8221;%d %b %y %H:%M&#8221;);<br />
define(&#8220;TZN_DATETIME_SHX&#8221;,&#8221;%a %d %b %y %H:%M&#8221;);<br />
define(&#8220;TZN_DATETIME_LNG&#8221;,&#8221;%d %B %Y, %H:%M&#8221;);<br />
define(&#8220;TZN_DATETIME_LNX&#8221;,&#8221;%A %d %B %Y, %H:%M&#8221;);<br />
&#8212;[replace]&#8212;<br />
define(&#8220;TZN_DATE_SHT&#8221;,&#8221;%d-%m-%y&#8221;);<br />
define(&#8220;TZN_DATE_SHX&#8221;,&#8221;%d-%m-%y&#8221;);<br />
define(&#8220;TZN_DATE_LNG&#8221;,&#8221;%d-%m-%y&#8221;);<br />
define(&#8220;TZN_DATE_LNX&#8221;,&#8221;%d-%m-%y&#8221;);<br />
define(&#8220;TZN_DATETIME_EUR&#8221;,&#8221;%d-%m-%y %H:%M:%S&#8221;);<br />
define(&#8220;TZN_DATETIME_USA&#8221;,&#8221;%d-%m-%y %H:%M:%S&#8221;);<br />
define(&#8220;TZN_DATETIME_SHT&#8221;,&#8221;%a %d %b %Y %H:%M&#8221;);<br />
define(&#8220;TZN_DATETIME_SHX&#8221;,&#8221;%a %d %b %Y %H:%M:%S&#8221;);<br />
define(&#8220;TZN_DATETIME_LNG&#8221;,&#8221;%d-%m-%y %H:%M:%S&#8221;);<br />
define(&#8220;TZN_DATETIME_LNX&#8221;,&#8221;%d-%m-%y %H:%M:%S&#8221;);</p>
<p>pkg_project.php<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>&#8212;[find]&#8212;<br />
&#8216;deadlineDate&#8217;      =&gt; &#8216;DTE&#8217;,<br />
&#8212;[replace]&#8212;<br />
&#8216;deadlineDate&#8217;      =&gt; &#8216;DTM&#8217;,</p>
<p>&#8212;[find]&#8212;<br />
    function getDeadline($short=false) {<br />
        if (ereg(&#8216;(9999|0000)&#8217;,$this-&gt;deadlineDate)) {<br />
			return &#8216;-&#8217;;<br />
		} else {<br />
			$dead = strtotime($this-&gt;deadlineDate);<br />
			$diff = $dead &#8211; intval(PRJ_DTE_NOW) ;<br />
			if ($diff itemStatus-&gt;statusKey &lt; FRK_STATUS_LEVELS) {<br />
					return &#8221;.$this-&gt;getDte(&#8216;deadlineDate&#8217;,$format).&#8221;;<br />
				} else {<br />
					return &#8221;.$this-&gt;getDte(&#8216;deadlineDate&#8217;,$format).&#8221;;<br />
				}<br />
			} else if ($diff == 0) {<br />
				if (@constant(&#8216;FRK_DATEDIFF_MODE&#8217;) == &#8216;date&#8217;) {<br />
					return &#8221;.$this-&gt;getDte(&#8216;deadlineDate&#8217;,($short)?&#8217;SHT&#8217;:'SHX&#8217;,&#8221;).&#8221;;<br />
				} else {<br />
					return &#8221;.$GLOBALS['langTznDate']['today'].&#8221;;<br />
				}<br />
			} else if ($short) {<br />
                $diff = $diff / 3600 / 24;<br />
				switch (@constant(&#8216;FRK_DATEDIFF_MODE&#8217;)) {<br />
				case &#8216;day&#8217;:<br />
					if (@constant(&#8216;FRK_DATEDIFF_TOMORROW&#8217;) &amp;&amp; $diff == 1) {<br />
						return $GLOBALS['langTznDate']['tomorrow'];<br />
					} else if ($diff &lt; 7) {<br />
					    $day = strtolower(date(&#8216;l&#8217;,$dead));<br />
					    if (array_key_exists($day,$GLOBALS['langTznDate'])) {<br />
					       $day = ucfirst($GLOBALS['langTznDate'][$day]);<br />
					    }<br />
					    return &#8221;.ucFirst($day).&#8221;;<br />
					} else {<br />
					    return &#8221;<br />
							.$this-&gt;getDte(&#8216;deadlineDate&#8217;,($short)?&#8217;SHT&#8217;:'SHX&#8217;,&#8221;)<br />
							.&#8221;;<br />
					}<br />
					break;<br />
				case &#8216;diff&#8217;:<br />
					switch($diff) {<br />
						case &#8217;1&#8242;:<br />
							if (@constant(&#8216;FRK_DATEDIFF_TOMORROW&#8217;)) {<br />
								return $GLOBALS['langTznDate']['tomorrow'];<br />
							} else {<br />
								return &#8217;1 &#8216;.$GLOBALS['langTznDate']['day'];<br />
							}<br />
							break;<br />
						case &#8217;2&#8242;:<br />
						case &#8217;3&#8242;:<br />
						case &#8217;4&#8242;:<br />
						case &#8217;5&#8242;:<br />
						case &#8217;6&#8242;:<br />
							return $diff.&#8217; &#8216;.$GLOBALS['langTznDate']['dasy'];<br />
							break;<br />
						default:<br />
							return &#8221;<br />
								.$this-&gt;getDte(&#8216;deadlineDate&#8217;,($short)?&#8217;SHT&#8217;:'SHX&#8217;,&#8221;)<br />
								.&#8221;;<br />
							break;<br />
					}<br />
					break;<br />
				default:<br />
					return &#8221;<br />
						.$this-&gt;getDte(&#8216;deadlineDate&#8217;,'SHT&#8217;,&#8221;)<br />
						.&#8221;;<br />
					break;<br />
				}<br />
            } else {<br />
                return &#8221;.$this-&gt;getDte(&#8216;deadlineDate&#8217;,'SHX&#8217;).&#8221;;<br />
            }<br />
        }<br />
    }<br />
&#8212;[replace]&#8212;<br />
    function getDeadline($short=false) {<br />
        if (ereg(&#8216;(9999|0000)&#8217;,$this-&gt;deadlineDate)) {<br />
			return &#8216;-&#8217;;<br />
		} else {<br />
			$dead = strtotime($this-&gt;deadlineDate);<br />
			$diff = $dead &#8211; intval(PRJ_DTE_NOW) ;<br />
			if ($diff itemStatus-&gt;statusKey &lt; FRK_STATUS_LEVELS) {<br />
					return &#8221;.$this-&gt;getDtm(&#8216;deadlineDate&#8217;,$format).&#8221;;<br />
				} else {<br />
					return &#8221;.$this-&gt;getDtm(&#8216;deadlineDate&#8217;,$format).&#8221;;<br />
				}<br />
			} else if ($diff == 0) {<br />
				if (@constant(&#8216;FRK_DATEDIFF_MODE&#8217;) == &#8216;date&#8217;) {<br />
					return &#8221;.$this-&gt;getDtm(&#8216;deadlineDate&#8217;,($short)?&#8217;SHT&#8217;:'SHX&#8217;,&#8221;).&#8221;;<br />
				} else {<br />
					return &#8221;.$GLOBALS['langTznDate']['today'].&#8221;;<br />
				}<br />
			} else if ($short) {<br />
                $diff = $diff / 3600 / 24;<br />
				switch (@constant(&#8216;FRK_DATEDIFF_MODE&#8217;)) {<br />
				case &#8216;day&#8217;:<br />
					if (@constant(&#8216;FRK_DATEDIFF_TOMORROW&#8217;) &amp;&amp; $diff == 1) {<br />
						return $GLOBALS['langTznDate']['tomorrow'];<br />
					} else if ($diff &lt; 7) {<br />
					    $day = strtolower(date(&#8216;l&#8217;,$dead));<br />
					    if (array_key_exists($day,$GLOBALS['langTznDate'])) {<br />
					       $day = ucfirst($GLOBALS['langTznDate'][$day]);<br />
					    }<br />
					    return &#8221;.ucFirst($day).&#8221;;<br />
					} else {<br />
					    return &#8221;<br />
							.$this-&gt;getDtm(&#8216;deadlineDate&#8217;,($short)?&#8217;SHT&#8217;:'SHX&#8217;,&#8221;)<br />
							.&#8221;;<br />
					}<br />
					break;<br />
				case &#8216;diff&#8217;:<br />
					switch($diff) {<br />
						case &#8217;1&#8242;:<br />
							if (@constant(&#8216;FRK_DATEDIFF_TOMORROW&#8217;)) {<br />
								return $GLOBALS['langTznDate']['tomorrow'];<br />
							} else {<br />
								return &#8217;1 &#8216;.$GLOBALS['langTznDate']['day'];<br />
							}<br />
							break;<br />
						case &#8217;2&#8242;:<br />
						case &#8217;3&#8242;:<br />
						case &#8217;4&#8242;:<br />
						case &#8217;5&#8242;:<br />
						case &#8217;6&#8242;:<br />
							return $diff.&#8217; &#8216;.$GLOBALS['langTznDate']['dasy'];<br />
							break;<br />
						default:<br />
							return &#8221;<br />
								.$this-&gt;getDtm(&#8216;deadlineDate&#8217;,($short)?&#8217;SHT&#8217;:'SHX&#8217;,&#8221;)<br />
								.&#8221;;<br />
							break;<br />
					}<br />
					break;<br />
				default:<br />
					return &#8221;<br />
						.$this-&gt;getDtm(&#8216;deadlineDate&#8217;,'SHT&#8217;,&#8221;)<br />
						.&#8221;;<br />
					break;<br />
				}<br />
            } else {<br />
                return &#8221;.$this-&gt;getDtm(&#8216;deadlineDate&#8217;,'SHX&#8217;).&#8221;;<br />
            }<br />
        }<br />
    }</p>
<p>tzn_generic.php<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>&#8212;[find]&#8212;<br />
if (@constant(&#8216;TZN_DATE_US_FORMAT&#8217;)) {<br />
    define(&#8220;TZN_DATE_FRM&#8221;,&#8221;%m/%d/%y&#8221;);	// US format<br />
} else {<br />
    define(&#8220;TZN_DATE_FRM&#8221;,&#8221;%d/%m/%y&#8221;);	// rest of the world dd/mm<br />
}<br />
&#8212;[replace]&#8212;<br />
if (@constant(&#8216;TZN_DATE_US_FORMAT&#8217;)) {<br />
    define(&#8220;TZN_DATE_FRM&#8221;,&#8221;%Y-%m-%d&#8221;);	// US format<br />
} else {<br />
    define(&#8220;TZN_DATE_FRM&#8221;,&#8221;%Y-%m-%d %H:%M:%S&#8221;);	// rest of the world dd/mm<br />
}</p>
<p>alinux</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.divideandconquer.se/2009/08/27/taskfreak-hacking-changing-first-day-of-week-to-monday/comment-page-1/#comment-509</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 01 Oct 2009 20:13:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.divideandconquer.se/?p=530#comment-509</guid>
		<description>@alinux

Great! What was the crucial change you made?</description>
		<content:encoded><![CDATA[<p>@alinux</p>
<p>Great! What was the crucial change you made?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alinux</title>
		<link>http://www.divideandconquer.se/2009/08/27/taskfreak-hacking-changing-first-day-of-week-to-monday/comment-page-1/#comment-508</link>
		<dc:creator>alinux</dc:creator>
		<pubDate>Thu, 01 Oct 2009 14:55:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.divideandconquer.se/?p=530#comment-508</guid>
		<description>Hi

Sorry for disturbe you...

It&#039;s perfect now... i&#039;managed to use datetime in datelineDate

al1</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Sorry for disturbe you&#8230;</p>
<p>It&#8217;s perfect now&#8230; i&#8217;managed to use datetime in datelineDate</p>
<p>al1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alinux</title>
		<link>http://www.divideandconquer.se/2009/08/27/taskfreak-hacking-changing-first-day-of-week-to-monday/comment-page-1/#comment-507</link>
		<dc:creator>alinux</dc:creator>
		<pubDate>Thu, 01 Oct 2009 14:48:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.divideandconquer.se/?p=530#comment-507</guid>
		<description>Hi

Ok i begin to understand...

I have to change setDte in setDtm in some of the files too with datelineDate in parameters.

But it&#039;s not enought again

I have to have in the field deadlineDate with the calendar this format :2009-11-2 04:24:00 for example... and that&#039;s good

But when i click on a day in the calendar my field become &quot;2/11/2009 04:24:00&quot; and that&#039;s not good after the record of this task

How to have after a click the format i want for the date ?

thanks a lot</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Ok i begin to understand&#8230;</p>
<p>I have to change setDte in setDtm in some of the files too with datelineDate in parameters.</p>
<p>But it&#8217;s not enought again</p>
<p>I have to have in the field deadlineDate with the calendar this format :2009-11-2 04:24:00 for example&#8230; and that&#8217;s good</p>
<p>But when i click on a day in the calendar my field become &#8220;2/11/2009 04:24:00&#8243; and that&#8217;s not good after the record of this task</p>
<p>How to have after a click the format i want for the date ?</p>
<p>thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alinux</title>
		<link>http://www.divideandconquer.se/2009/08/27/taskfreak-hacking-changing-first-day-of-week-to-monday/comment-page-1/#comment-506</link>
		<dc:creator>alinux</dc:creator>
		<pubDate>Thu, 01 Oct 2009 12:11:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.divideandconquer.se/?p=530#comment-506</guid>
		<description>yes it&#039;s better but not enought...

In fact you can see bottom all what i changed and the probleme is when i create a task i see the deadlineDate whith good format (xx/xx/xxxx xx:xx:xx) but when i record my task in the tab at index.php i&#039;ve got &quot;-   &quot; and in the database i&#039;v got &quot;0000-00-00 00:00:00&quot; 

Strange no ?

include/config.php
-----------------------

before :
// === DATE FORMATS ===========================================
define(&quot;TZN_DATE_SHT&quot;,&quot;%d %b %y&quot;);
define(&quot;TZN_DATE_SHX&quot;,&quot;%a %d %b %y&quot;);
define(&quot;TZN_DATE_LNG&quot;,&quot;%d %B %Y&quot;);
define(&quot;TZN_DATE_LNX&quot;,&quot;%A %d %B %Y&quot;);
define(&quot;TZN_DATETIME_EUR&quot;,&quot;%d/%m/%y %H:%M&quot;);
define(&quot;TZN_DATETIME_USA&quot;,&quot;%m/%d/%y %I:%M%p&quot;);
define(&quot;TZN_DATETIME_SHT&quot;,&quot;%d %b %y %H:%M&quot;);
define(&quot;TZN_DATETIME_SHX&quot;,&quot;%a %d %b %y %H:%M&quot;);
define(&quot;TZN_DATETIME_LNG&quot;,&quot;%d %B %Y, %H:%M&quot;);
define(&quot;TZN_DATETIME_LNX&quot;,&quot;%A %d %B %Y, %H:%M&quot;);

after :
// === DATE FORMATS ===========================================
define(&quot;TZN_DATE_SHT&quot;,&quot;%d %b %y&quot;);
define(&quot;TZN_DATE_SHX&quot;,&quot;%a %d %b %y&quot;);
define(&quot;TZN_DATE_LNG&quot;,&quot;%d %B %Y&quot;);
define(&quot;TZN_DATE_LNX&quot;,&quot;%A %d %B %Y&quot;);
define(&quot;TZN_DATETIME_EUR&quot;,&quot;%d/%m/%y %H:%M:%S&quot;);
define(&quot;TZN_DATETIME_USA&quot;,&quot;%m/%d/%y %I:%M%p:%S&quot;);
define(&quot;TZN_DATETIME_SHT&quot;,&quot;%d %b %y %H:%M:%S&quot;);
define(&quot;TZN_DATETIME_SHX&quot;,&quot;%a %d %b %y %H:%M:%S&quot;);
define(&quot;TZN_DATETIME_LNG&quot;,&quot;%d %B %Y, %H:%M:%S&quot;);
define(&quot;TZN_DATETIME_LNX&quot;,&quot;%A %d %B %Y, %H:%M:%S&quot;);



include/tzn_generic.php
-----------------------

before :
define(&quot;TZN_DATE_SQL&quot;,&quot;%Y-%m-%d&quot;);
define(&quot;TZN_DATETIME_SQL&quot;,&quot;%Y-%m-%d %H:%M:%s&quot;);  

if (@constant(&#039;TZN_DATE_US_FORMAT&#039;)) {
    define(&quot;TZN_DATE_FRM&quot;,&quot;%m/%d/%y&quot;);	// US format 
} else {
    define(&quot;TZN_DATE_FRM&quot;,&quot;%d/%m/%y&quot;);	// rest of the world dd/mm  ... 
}

after :
define(&quot;TZN_DATE_SQL&quot;,&quot;%Y-%m-%d&quot;);
define(&quot;TZN_DATETIME_SQL&quot;,&quot;%Y-%m-%d %H:%M:%S&quot;);

if (@constant(&#039;TZN_DATE_US_FORMAT&#039;)) {
    define(&quot;TZN_DATE_FRM&quot;,&quot;%m/%d/%y&quot;);	// US format 
} else {
    define(&quot;TZN_DATE_FRM&quot;,&quot;%d/%m/%y %H:%M:%S&quot;);	// rest of the world dd/mm ....
}



jscalendar/calendar-setup.php
-----------------------------

before :
param_default(&quot;ifFormat&quot;,&quot;&quot;);
param_default(&quot;daFormat&quot;,&quot;%d %b %y&quot;);

after :
param_default(&quot;ifFormat&quot;,&quot;&quot;);
param_default(&quot;daFormat&quot;,&quot;%d %b %y %H %M %S&quot;);



jscalendar/calendar-setup.js
----------------------------

before :
param_default(&quot;ifFormat&quot;,&quot;%d/%m/%y&quot;);
param_default(&quot;daFormat&quot;,&quot;%d %b %y&quot;);

after :
param_default(&quot;ifFormat&quot;,&quot;%d/%m/%y %H:%M:%S&quot;);
param_default(&quot;daFormat&quot;,&quot;%d %b %y %H %M %S&quot;);



include/classes/pkg_project.php
-------------------------------

before :
&#039;deadlineDate&#039;      =&gt; &#039;DTE&#039;,

after :
&#039;deadlineDate&#039;      =&gt; &#039;DTM&#039;,</description>
		<content:encoded><![CDATA[<p>yes it&#8217;s better but not enought&#8230;</p>
<p>In fact you can see bottom all what i changed and the probleme is when i create a task i see the deadlineDate whith good format (xx/xx/xxxx xx:xx:xx) but when i record my task in the tab at index.php i&#8217;ve got &#8220;-   &#8221; and in the database i&#8217;v got &#8220;0000-00-00 00:00:00&#8243; </p>
<p>Strange no ?</p>
<p>include/config.php<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>before :<br />
// === DATE FORMATS ===========================================<br />
define(&#8220;TZN_DATE_SHT&#8221;,&#8221;%d %b %y&#8221;);<br />
define(&#8220;TZN_DATE_SHX&#8221;,&#8221;%a %d %b %y&#8221;);<br />
define(&#8220;TZN_DATE_LNG&#8221;,&#8221;%d %B %Y&#8221;);<br />
define(&#8220;TZN_DATE_LNX&#8221;,&#8221;%A %d %B %Y&#8221;);<br />
define(&#8220;TZN_DATETIME_EUR&#8221;,&#8221;%d/%m/%y %H:%M&#8221;);<br />
define(&#8220;TZN_DATETIME_USA&#8221;,&#8221;%m/%d/%y %I:%M%p&#8221;);<br />
define(&#8220;TZN_DATETIME_SHT&#8221;,&#8221;%d %b %y %H:%M&#8221;);<br />
define(&#8220;TZN_DATETIME_SHX&#8221;,&#8221;%a %d %b %y %H:%M&#8221;);<br />
define(&#8220;TZN_DATETIME_LNG&#8221;,&#8221;%d %B %Y, %H:%M&#8221;);<br />
define(&#8220;TZN_DATETIME_LNX&#8221;,&#8221;%A %d %B %Y, %H:%M&#8221;);</p>
<p>after :<br />
// === DATE FORMATS ===========================================<br />
define(&#8220;TZN_DATE_SHT&#8221;,&#8221;%d %b %y&#8221;);<br />
define(&#8220;TZN_DATE_SHX&#8221;,&#8221;%a %d %b %y&#8221;);<br />
define(&#8220;TZN_DATE_LNG&#8221;,&#8221;%d %B %Y&#8221;);<br />
define(&#8220;TZN_DATE_LNX&#8221;,&#8221;%A %d %B %Y&#8221;);<br />
define(&#8220;TZN_DATETIME_EUR&#8221;,&#8221;%d/%m/%y %H:%M:%S&#8221;);<br />
define(&#8220;TZN_DATETIME_USA&#8221;,&#8221;%m/%d/%y %I:%M%p:%S&#8221;);<br />
define(&#8220;TZN_DATETIME_SHT&#8221;,&#8221;%d %b %y %H:%M:%S&#8221;);<br />
define(&#8220;TZN_DATETIME_SHX&#8221;,&#8221;%a %d %b %y %H:%M:%S&#8221;);<br />
define(&#8220;TZN_DATETIME_LNG&#8221;,&#8221;%d %B %Y, %H:%M:%S&#8221;);<br />
define(&#8220;TZN_DATETIME_LNX&#8221;,&#8221;%A %d %B %Y, %H:%M:%S&#8221;);</p>
<p>include/tzn_generic.php<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>before :<br />
define(&#8220;TZN_DATE_SQL&#8221;,&#8221;%Y-%m-%d&#8221;);<br />
define(&#8220;TZN_DATETIME_SQL&#8221;,&#8221;%Y-%m-%d %H:%M:%s&#8221;);  </p>
<p>if (@constant(&#8216;TZN_DATE_US_FORMAT&#8217;)) {<br />
    define(&#8220;TZN_DATE_FRM&#8221;,&#8221;%m/%d/%y&#8221;);	// US format<br />
} else {<br />
    define(&#8220;TZN_DATE_FRM&#8221;,&#8221;%d/%m/%y&#8221;);	// rest of the world dd/mm  &#8230;<br />
}</p>
<p>after :<br />
define(&#8220;TZN_DATE_SQL&#8221;,&#8221;%Y-%m-%d&#8221;);<br />
define(&#8220;TZN_DATETIME_SQL&#8221;,&#8221;%Y-%m-%d %H:%M:%S&#8221;);</p>
<p>if (@constant(&#8216;TZN_DATE_US_FORMAT&#8217;)) {<br />
    define(&#8220;TZN_DATE_FRM&#8221;,&#8221;%m/%d/%y&#8221;);	// US format<br />
} else {<br />
    define(&#8220;TZN_DATE_FRM&#8221;,&#8221;%d/%m/%y %H:%M:%S&#8221;);	// rest of the world dd/mm &#8230;.<br />
}</p>
<p>jscalendar/calendar-setup.php<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>before :<br />
param_default(&#8220;ifFormat&#8221;,&#8221;");<br />
param_default(&#8220;daFormat&#8221;,&#8221;%d %b %y&#8221;);</p>
<p>after :<br />
param_default(&#8220;ifFormat&#8221;,&#8221;");<br />
param_default(&#8220;daFormat&#8221;,&#8221;%d %b %y %H %M %S&#8221;);</p>
<p>jscalendar/calendar-setup.js<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>before :<br />
param_default(&#8220;ifFormat&#8221;,&#8221;%d/%m/%y&#8221;);<br />
param_default(&#8220;daFormat&#8221;,&#8221;%d %b %y&#8221;);</p>
<p>after :<br />
param_default(&#8220;ifFormat&#8221;,&#8221;%d/%m/%y %H:%M:%S&#8221;);<br />
param_default(&#8220;daFormat&#8221;,&#8221;%d %b %y %H %M %S&#8221;);</p>
<p>include/classes/pkg_project.php<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>before :<br />
&#8216;deadlineDate&#8217;      =&gt; &#8216;DTE&#8217;,</p>
<p>after :<br />
&#8216;deadlineDate&#8217;      =&gt; &#8216;DTM&#8217;,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.divideandconquer.se/2009/08/27/taskfreak-hacking-changing-first-day-of-week-to-monday/comment-page-1/#comment-502</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 30 Sep 2009 10:17:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.divideandconquer.se/?p=530#comment-502</guid>
		<description>Unfortunately I don&#039;t have time to experiment right now, but I notice that you probably also should change:

deadlineDate&#039;      =&gt; &#039;DTE&#039;,

in pkg_project.php to:

deadlineDate&#039;      =&gt; &#039;DTM&#039;,</description>
		<content:encoded><![CDATA[<p>Unfortunately I don&#8217;t have time to experiment right now, but I notice that you probably also should change:</p>
<p>deadlineDate&#8217;      => &#8216;DTE&#8217;,</p>
<p>in pkg_project.php to:</p>
<p>deadlineDate&#8217;      => &#8216;DTM&#8217;,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alinux</title>
		<link>http://www.divideandconquer.se/2009/08/27/taskfreak-hacking-changing-first-day-of-week-to-monday/comment-page-1/#comment-501</link>
		<dc:creator>alinux</dc:creator>
		<pubDate>Wed, 30 Sep 2009 10:04:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.divideandconquer.se/?p=530#comment-501</guid>
		<description>yes i did it but nothing change !!

The code is complicated ...maybe when the application make a record in the database, it trunk the value or reformat it ... but i don&#039;t find where</description>
		<content:encoded><![CDATA[<p>yes i did it but nothing change !!</p>
<p>The code is complicated &#8230;maybe when the application make a record in the database, it trunk the value or reformat it &#8230; but i don&#8217;t find where</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.divideandconquer.se/2009/08/27/taskfreak-hacking-changing-first-day-of-week-to-monday/comment-page-1/#comment-500</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 30 Sep 2009 08:47:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.divideandconquer.se/?p=530#comment-500</guid>
		<description>Did you change the database column to a &quot;datetime&quot; too? It&#039;s only a &quot;date&quot; in the table now.</description>
		<content:encoded><![CDATA[<p>Did you change the database column to a &#8220;datetime&#8221; too? It&#8217;s only a &#8220;date&#8221; in the table now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alinux</title>
		<link>http://www.divideandconquer.se/2009/08/27/taskfreak-hacking-changing-first-day-of-week-to-monday/comment-page-1/#comment-499</link>
		<dc:creator>alinux</dc:creator>
		<pubDate>Wed, 30 Sep 2009 08:18:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.divideandconquer.se/?p=530#comment-499</guid>
		<description>Hi

Yes i would like for deadlineDate in frk_item...this type : datetime so this format : %d/%m/%y %H:%M:%S ... because i m  french  :)

When i create a task i want for the deadline field : 25/02/09 15:10:00 for example

In fact i could do it but when i record my task in the mysql database, i always have 2009-02-25 00:00:00  

Hours, Minutes ans Secondes are always at 0 !!!

Thanks a lot</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Yes i would like for deadlineDate in frk_item&#8230;this type : datetime so this format : %d/%m/%y %H:%M:%S &#8230; because i m  french  :)</p>
<p>When i create a task i want for the deadline field : 25/02/09 15:10:00 for example</p>
<p>In fact i could do it but when i record my task in the mysql database, i always have 2009-02-25 00:00:00  </p>
<p>Hours, Minutes ans Secondes are always at 0 !!!</p>
<p>Thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.divideandconquer.se/2009/08/27/taskfreak-hacking-changing-first-day-of-week-to-monday/comment-page-1/#comment-496</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 30 Sep 2009 06:14:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.divideandconquer.se/?p=530#comment-496</guid>
		<description>@alinux 
Do you mean that you want a time of day too, not just a date?</description>
		<content:encoded><![CDATA[<p>@alinux<br />
Do you mean that you want a time of day too, not just a date?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

