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 previous 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
 
Read Message
Read Message
Previous Topic: Backslash adding in CONCAT in calculated field
Next Topic: Custom validation
Goto Forum:
  


Current Time: Tue May 21 18:37:28 EDT 2024

Total time taken to generate the page: 0.00845 seconds