dbQwikSite User Forum
http://forum.dbqwiksite.com/

Date format problem and solution in function qsconvertdate
http://forum.dbqwiksite.com/viewtopic.php?f=10&t=3056
Page 1 of 1

Author:  rgdobie [ Thu Nov 04, 2010 6:31 am ]
Post subject:  Date format problem and solution in function qsconvertdate

In qs_functions.php at line 281 the following code:
$temp = preg_split('[- ]', $sdate);
should be replaced by:
$temp = preg_split('[-]', $sdate);
The existing code causes dates to display wrongly e.g. the date begins or ends with two dashes or slashes and the format is not applied such as '2010-10-28' displaying as '--2010-10-28'.

Author:  rdbartz [ Sat Nov 20, 2010 10:56 am ]
Post subject:  Re: Date format problem and solution in function qsconvertda

Thanks for that fix, I think Gerald will surely correct this in the next update.

Richard

Page 1 of 1 All times are UTC + 7 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/