<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Date format inconsistency]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=703</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=703&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Date format inconsistency.]]></description>
		<lastBuildDate>Thu, 26 Nov 2009 11:35:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Date format inconsistency]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=3952#p3952</link>
			<description><![CDATA[<p>Hi Guys</p><p>I am also in RSA and wanted to use date format DD/MM/YYYY and set it accordingly in preferences.</p><p>I get the same error where the date is displyed still in USA format: MM/DD/YYYY</p><p>I use Fire Fox 3.5.3</p><p>Vista Home Preium English South Africa.</p><p>I tried your response with DD MM YYYY and it worked.</p><p>Thanks&nbsp; &nbsp; <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Thu, 26 Nov 2009 11:35:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=3952#p3952</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date format inconsistency]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=2889#p2889</link>
			<description><![CDATA[<p>Hey Pete.</p><p>Thanks for all that research you have done. Most impressed <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>For now I have done what Joe has suggested, namely clearing the cache browser. That makes it seem to work. <br />In retrospect, I should have considered the browser cache as I have seen this cause strange behavior elsewhere, especially when creating websites in Drupal.</p><p>Regards</p><p>/Andre</p>]]></description>
			<author><![CDATA[null@example.com (ITCynic)]]></author>
			<pubDate>Mon, 15 Jun 2009 11:49:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=2889#p2889</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date format inconsistency]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=2888#p2888</link>
			<description><![CDATA[<p>Hi ITCynic and Joe</p><p>I spent a spare 30 minutes today looking into this date format problem (I&#039;m going to customise it for faster data entry for me), and can shed some light on it for you to either fix it, or workaround it. FA uses an interesting javascript cache technique to reflect user preferences by using code that actually creates a new code file - in this case date_picker.js which lives in <br />/company/x/js_cache&nbsp; (where x is your company number).</p><p>When you change your user date format in the display_prefs.php screen, the system updates the $_POST variable with your requested format and other changes you want. A few other steps are run, and then /includes/ui/ui_view.inc actually writes out a NEW javascript file that includes the code for the date picker, including the order of days and months. This file goes in your /company/??/js_cache folder, replacing the old one. So... you end up with a new javascript file (date_picker.js in this case) that matches your formatting preferences. </p><p>ITCynic, it sounds like your date_picker.js file is NOT being copied into the&nbsp; /company/x/js_cache directory properly. You can see if this is occurring by checking line 51 of the date_picker.js file:&nbsp; </p><p>if(dateField){try{var dateString=new String(dateField.value);var dateParts=dateString.split(&#039;-&#039;);selectedDay=parseInt(dateParts[0],10);selectedMonth=parseInt(dateParts[1],10);selectedYear=parseInt(dateParts[2],10);}catch(e){} </p><p>(this is part of the &#039;show&#039; function which takes your on screen inputted date, and updates the popup when you click it).</p><p>Note this line should contain your separator &#039;split(&#039;-&#039;) AND the right offsets for day and month that come from the text input box screen. In the case above, Day is element 0, month is element 1, representing a 31-12-2009 style date.</p><p>Your problem might be caused by write permissions on the directory, or some other defect in the .js file copying process. </p><p>If you plan on sticking to one format,and one separator, you can overcome your problem by just editing this date_picker.js manually, replacing line 51 with the one above (assuming you want 31-12-2009 format). Try this and let us know how it goes. It does sound like a problem unique to your environment though, as everybody else is creating the date_picker.js file and copying it successfully.</p><p>Cheers<br />Pete</p><br /><p>PS. HAHA - I just missed Joe and ITCynic&#039;s updates - oh well, I&#039;ve learnt about the date picker and will let the forum know when I&#039;ve updated a new one I want that will let you type in <br />12032009<br />120309<br />12-03-09<br />12-3-2009 etc.</p><p>I find the digits only way very quick to enter data.</p>]]></description>
			<author><![CDATA[null@example.com (p2409)]]></author>
			<pubDate>Mon, 15 Jun 2009 11:38:50 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=2888#p2888</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date format inconsistency]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=2887#p2887</link>
			<description><![CDATA[<p>Hey Joe,</p><p>Thanks for persevering with this issue. See ..... you are passionate about FA <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>I cleared the browser cache and date picker works fine now.</p><p>Regards</p><p>/Andre</p>]]></description>
			<author><![CDATA[null@example.com (ITCynic)]]></author>
			<pubDate>Mon, 15 Jun 2009 11:18:34 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=2887#p2887</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date format inconsistency]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=2886#p2886</link>
			<description><![CDATA[<p>Hello Andre and all other that might have problem with shifting the date-format and separator. This is not a fault in the English -South Africa region. It is a browser cache problem.<br />Before changing the date-format (preferences), empty the browsers caches. When selecting the new date-format/separator try to do a couple of changes forth and back and update everytime. It will force a new js to be uploaded to the company/no/js_cache folder. This mechanism has been done to speed up the routines, but unfortunately, also to irritate Andre a great deal. So I have to apolygize a lot for this.<br />Hopefully this helps also for eventually others.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 15 Jun 2009 11:06:31 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=2886#p2886</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date format inconsistency]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=2884#p2884</link>
			<description><![CDATA[<div class="quotebox"><cite>p2409 wrote:</cite><blockquote><p>otherwise make an offer to pay someone to sort out the problem for you rather than criticise the developers because they don&#039;t do it your way</p></blockquote></div><p>Thanks for your insight, I actually did offer to pay for an amended purchase order layout and unfortunately both developers are &quot;too busy&quot;. In any event, I am busy reviewing the code to see how to do the mods myself.</p><p>As per your suggestion, I will try a different java date picker, thanks for that tip.</p>]]></description>
			<author><![CDATA[null@example.com (ITCynic)]]></author>
			<pubDate>Mon, 15 Jun 2009 07:04:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=2884#p2884</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date format inconsistency]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=2881#p2881</link>
			<description><![CDATA[<p>ALL browsers have a host of discrepancies/bugs when handling javascript. The engine&#039;s have previously been the last thing the browser developers have worried about. </p><p>In response to ITCynic, I support the developers 100% in the way they prioritise work. In your case, the best guess is this is a javascript problem with the date picker (I looked at the PHP code too), and I&#039;d prefer they didn&#039;t waste time trying to accommodate browser issues for one country (so far). If you don&#039;t believe javascript engines are crappy, ask yourself why google has spent millions developing a framework that tries to integrate them!</p><p>I have a totally different view to ITCynic on the way bugs are handled in FA. Genuine, reproducible and significant bugs get almost immediate attention off these guys - more than any I&#039;ve seen in any other software, commercial or otherwise. In regards to help, I think the guys also do a sterling job - to those who can communicate their problem and understand accounting adequately. To clueless people on here who ask questions like: &quot;can someone tell me how to interface FA to xxxx payroll&quot; etc, or &quot;can someone do all the hard work so I don&#039;t have investigate or learn about my problem&quot; I would encourage the guys to keep giving them polite, but short shrift. This is open source software - you get what you put in.</p><p>To be blunt ITCynic, come back when you understand and have debugged the PHP code, otherwise make an offer to pay someone to sort out the problem for you rather than criticise the developers because they don&#039;t do it your way . Your experiences with dates in non-browser applications you&#039;ve used since Y2K are irrelevant - as I said, javascript engines are awful. A more practical piece of advice for you would be to replace the existing javascript date picker with another one (there are heaps of them out there) - not too difficult, and will narrow down the problem for you.</p>]]></description>
			<author><![CDATA[null@example.com (p2409)]]></author>
			<pubDate>Sun, 14 Jun 2009 19:54:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=2881#p2881</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date format inconsistency]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=2880#p2880</link>
			<description><![CDATA[<p>Hi Joe</p><p>No difference in behavior, still incorrect. Using FireFox 3.0.11</p><p><a href="http://zjunction.com/datefunc2.exe">http://zjunction.com/datefunc2.exe</a></p><p>/Andre</p>]]></description>
			<author><![CDATA[null@example.com (ITCynic)]]></author>
			<pubDate>Sun, 14 Jun 2009 15:23:33 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=2880#p2880</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date format inconsistency]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=2879#p2879</link>
			<description><![CDATA[<p>Hello again,<br />I will not start arguing about your last issues. Only explain what has happened about the region English - South Africa.<br />The following browsers are handling everything ok with date formatting while operating in South Africa region:<br />Firefox 3.0.8,<br />Google Chrome 2.0<br />The following browsers are not handling the / separator correctly in date formatting in South Africa region:<br />Internet Explorer 8.0<br />Opera 9.5<br />These were the browsers I have here. What is the conclusion from these tests?</p><p>When operating in South Africa region, the JavaScript engines inside Internet Explorer and Opera are not working properly when using a / separator in the date formatting.<br />So you can either follow my former instructions or change to Firefox/Google chrome for correct handling.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sun, 14 Jun 2009 14:56:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=2879#p2879</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date format inconsistency]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=2878#p2878</link>
			<description><![CDATA[<p>Hi Joe</p><div class="quotebox"><blockquote><p>Your solution is only partly working as is.</p></blockquote></div><p>It was not my intention to provide a piece of working code, I cobbled that together in a few seconds to explain the <strong>concept</strong> of what I would have done if I were writing in Clipper. Besides I have not coded for at least 15 years now.</p><div class="quotebox"><blockquote><p>I think our algorithms are quite ok.</p></blockquote></div><p>My post was/is not a comment on your coding styles or algorithms. In fact I have repeatedly stated on this forum that you guys have a brilliant application and commended you for the good work so far.</p><div class="quotebox"><blockquote><p>It is when calling the JavaScript routines that things get screwed up when using the / as separator in the English - South Africa environment</p></blockquote></div><p>When I evaluated FA in v2.03 I am sure this was not an issue.</p><br /><p>Off topic :-</p><p>From both your and Janusz&#039;s reply&#039;s to various user posts, I get the impression that you are both :-</p><p>a) extremely passionate about FA <br />b) always too busy to provide detailed help / how to&#039;s<br />c) seem sensitive when someone points out a deficiency or bug in the application and you would rather have a finger pointed elsewhere.</p><p>I do understand that FA does not pay your bills and is a labour of love with development being done when resources permit and I commend you and Janusz on your incredible efforts. For a 2 man team to get this much accomplished is pretty impressive.</p><p>I was under the impression this forum was about users communicating with the developers (yourselves) to assist in creating the best Open Source accounting package there is. </p><p>But I keep reading questions of a similar type being asked and not being addressed because it &quot;will be considered in the next version&quot; or &quot;will be addressed in the next version&quot; or &quot;we are too busy with the next version&quot;.</p><p>I think the users of FA and fellow forumites should ask themselves the following questions.</p><p>&quot;I prefer constant development to the next version with new features.&quot;&nbsp; &nbsp; or</p><p>&quot;I prefer a freeze on new features with more bugs being ironed out of current versions.&quot;</p><p>Personally, I prefer a freeze on new features until bugs are ironed out in current versions. </p><p>I have been following the progress of FA for the past 11 months, hoping it will get to a point where I can start recommending it to clients but all that is happening is new feature requests rather than making existing features stable, rock solid and bullet-proof.</p><p>Maybe, what I am looking for (a stable, customizable application actively supported by the community) is not really on offer here yet. </p><p>Please view these comments from someone who really wants to use and promote this application (like other forumites) and see it become the best Open Source accounting package there is. </p><br /><br /><p>Regards</p><p>/Andre</p>]]></description>
			<author><![CDATA[null@example.com (ITCynic)]]></author>
			<pubDate>Sun, 14 Jun 2009 14:39:32 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=2878#p2878</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date format inconsistency]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=2877#p2877</link>
			<description><![CDATA[<p>Well, my friend. As an old C and C++ programmer I think our algorithms are quite ok. Your solution is only partly working as is. If you look at the date formatting in all the date fields, they are correctly formatted. It is when calling the JavaScript routines that things get screwed up when using the / as separator in the English - Southafrica environment and not american style.<br />Would be glad to hear if any other regions are having problem with the / as date separator.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sun, 14 Jun 2009 12:58:33 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=2877#p2877</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date format inconsistency]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=2876#p2876</link>
			<description><![CDATA[<div class="quotebox"><cite>joe wrote:</cite><blockquote><p>It seems to be in the operating system.</p></blockquote></div><p>I very much doubt it is the operating system as this would have quite a impact on many applications that use dates. (remember the Y2K debacle?). </p><p>In my days as a Clipper programmer I would have checked the the date format type ( ie American or British )<br />and then evaluated the date entry field to pass the correct date format to the calendar&nbsp; function. </p><p>If the date is British and the calendar function is American I would rearrange the date string in the correct order before calling the calendar function, </p><p>For example<br /></p><div class="codebox"><pre><code>If date = &quot;British&quot;
  dDay = DAY( dDate)
  dMonth = MONTH( dDate )
  dyear = YEAR( dYear )

dResult = GetCalendar( dMonth + &quot;/&quot; + dDay + &quot;/&quot; + dYear + &quot;/&quot; )
dDate = DAY( dResult) + &quot;/&quot; + MONTH( dResult) + &quot;/&quot; + YEAR(dResult) // Would return dDate in British format

else

dResult = GetCalendar( dDate)
dDate = MONTH( dResult) + &quot;/&quot; + DAY( dResult) + &quot;/&quot; + YEAR(dResult) // Would return dDate in American format

endif</code></pre></div><p>Not being a PHP coder I am not sure how one would do this, but I am in the process of trying to teach myself PHP so I can modify your forms layouts.</p><p>Regards</p><p>/Andre</p>]]></description>
			<author><![CDATA[null@example.com (ITCynic)]]></author>
			<pubDate>Sun, 14 Jun 2009 12:39:09 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=2876#p2876</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date format inconsistency]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=2875#p2875</link>
			<description><![CDATA[<p>Hello Andre,<br />I have change to English - South Africa and I have now reproduced the error. <br />If you use the / as date separator only the american format MM/DD/YYYY is working.<br />But if you use any of the other separators everything work just fine. So you will have to use either &#039;-&#039;, &#039;.&#039; or blank as the separator to get the DDMMYYYY to work.<br />I have no idea where to look for this behavious. It seems to be in the operating system.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sun, 14 Jun 2009 11:46:29 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=2875#p2875</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date format inconsistency]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=2868#p2868</link>
			<description><![CDATA[<div class="quotebox"><cite>joe wrote:</cite><blockquote><p>Yes I see that your example is doing something wrong. Maybe there is a javascript problem on your client. This is the first time I have heard of this.<br />And I still can&#039;t reproduce it.<br />Did you try to logout and login again to see if it helps?</p><p>/Joe</p></blockquote></div><p>I am using Java 6 update 13 - all my other java stuff works fine. Other demos elsewhere using similar techniques work fine. I doubt it would be the java.</p><p>My regional settings in XP is &quot;English - South Africa&quot; .&nbsp; Try setting your region to mine, also my short date in XP is &quot;dd/MM/yyyy&quot; and the long date is &quot;dd MM yyyy&quot;</p><p>Logged in and out a few times.</p><p>The tool I used is Screen2EXE found at <a href="http://www.screen-record.com/screen2exe.htm">http://www.screen-record.com/screen2exe.htm</a></p><p>/Andre</p>]]></description>
			<author><![CDATA[null@example.com (ITCynic)]]></author>
			<pubDate>Sat, 13 Jun 2009 11:32:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=2868#p2868</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date format inconsistency]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=2867#p2867</link>
			<description><![CDATA[<p>BTW, what tool do you use for creating the demo?</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sat, 13 Jun 2009 11:16:34 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=2867#p2867</guid>
		</item>
	</channel>
</rss>
