Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Bug Reports » Error with date in dd/mm/yyy format
Error with date in dd/mm/yyy format [message #1723] Thu, 02 October 2008 13:04 Go to next message
bonzo_bcn is currently offline  bonzo_bcn
Messages: 152
Registered: June 2008
Senior Member
I've configured radicore to use this date format: dd/mm/yyyy
I think there is a bug around line 85 in std.datevalidation.class.inc

With the debugger I found that when updating a date field it executes this code in line 89:
$result = $this->verifyDate($regs[3], $regs[1], $regs[5]);

So it passes the month as day, and therefore date verification fails.

This is the data I got with the debugger:
$this->date_format=dd/mm/yyyy
$input=24/01/2009
regs[1]=24
regs[3]=01
regs[5]=2009
Re: Error with date in dd/mm/yyy format [message #1725 is a reply to message #1723] Thu, 02 October 2008 17:11 Go to previous message
AJM is currently offline  AJM
Messages: 2347
Registered: April 2006
Location: Surrey, UK
Senior Member
You are correct. Fix attached.

Previous Topic: Backslash adding in CONCAT in calculated field
Next Topic: Custom validation
Goto Forum:
  


Current Time: Wed May 01 05:00:08 EDT 2024

Total time taken to generate the page: 0.01272 seconds