Date shows Nov-30-1999 when db value is 0000-00-00 00:00
Posted: Sat Jun 08, 2013 1:54 am
Hi,
I am using version v2.8.1-12.12.19-Build554.
When I use a text object with date formatting, the fields in my database withe the value: '0000-00-00 00:00', are displayed as 'Nov-30-1999' in nuBuilder's edit form.
I solved this by changing line 485 of common.php file from:
if($pValue=='' or $pValue=='0000-00-00'){
to:
if($pValue=='' or $pValue=='0000-00-00' or $pValue=='0000-00-00 00:00'){
Hope this helps someone else.
Regrads!
Fike
I am using version v2.8.1-12.12.19-Build554.
When I use a text object with date formatting, the fields in my database withe the value: '0000-00-00 00:00', are displayed as 'Nov-30-1999' in nuBuilder's edit form.
I solved this by changing line 485 of common.php file from:
if($pValue=='' or $pValue=='0000-00-00'){
to:
if($pValue=='' or $pValue=='0000-00-00' or $pValue=='0000-00-00 00:00'){
Hope this helps someone else.
Regrads!
Fike