|
From: webERP D. <web...@li...> - 2013-01-19 22:57:49
|
Hi, Apologies for the delay. I took advantage of the year-end and the beginning of this year to read about html, css, php and PoEdit (Sorry, I'm a business administrator, not a programmer). What I did: 1. Update to webERP 4.09.1 (2012-12-02 files). 2. Replace ~/webERP/includes/DateFunctions.inc with the Tim's version (THANKS TIM !!!). 3. Modify ~/webERP/SystemParameters.php, adding " <option '.(($_SESSION['DefaultDateFormat']=='Y-m-d')?'selected="selected" ':'').'value="Y-m-d">Y-m-d</option>" after the line 354. 4. Test. It works fine. For contributing with this modification, "p/web-erp/code - Revision 5795: /trunk" (http://svn.code.sf.net/p/web-erp/code/trunk/) is the last version ? Regards, Rafael. ---------- 2013/1/1 Tim Schofield wrote: > Hi Rafael, > > I have made some adjustments to includes/DateFunctions.inc and attach > the file for your testing. > > You will have to make a small change in SystemjParameters.php to add > this option to the drop down list. > > Let me know if it works for you, > Tim > > On 29/12/2012, Tim Schofield wrote: >> Hi Rafael, >> >> The main thing that needs doing is that some of the functions in >> includes/DateFunctions.inc need to be changed to work with the hyphen. >> Looking at it some are already set up for it, others aren't. Then all >> that would be needed is for it to be added to the drop down list in >> SystemParameters.php. >> >> I'm 90% sure the javascript date picker would work ok, but trial and >> error would prove it. >> >> Hope this helps, >> Tim >> >> On 29/12/2012, webERP Developers >> <web...@li...> wrote: >>> Hello, >>> >>> I asked this question to web-erp-users list, but I am not sure if that >>> question is better a developer issue: How to create and add a Default >>> Date Format option "Y-m-d" (with hyphens) ? >>> >>> Regards, Rafael. >>> >>> >>> ---------- Forwarded message ---------- >>> From: Rafael Chacón <raf...@gm...> >>> Date: 2012/12/29 >>> Subject: Default Date Format in ISO 8601 >>> To: For the general discussion of webERP project >>> <web...@li...> >>> >>> >>> Hello, >>> >>> The date expressed according to "ISO 8601 Data elements and >>> interchange formats – Information interchange – Representation of >>> dates and times" is "YYYY-MM-DD" or "YYYYMMDD" (e.g. "2012-12-26" or >>> "20121226"). >>> >>> But in webERP /Main Menu /Setup /Configuration Settings >>> (SystemParameters.php), in "Default Date Format", I only have the >>> option "Y/m/d". >>> >>> How to create and add the option "Y-m-d" (with hyphens) ? >>> >>> Regards, Rafael. >>> |