jorn Posted April 23, 2004 Posted April 23, 2004 Product Returns Warning: unexpected error in date() in C:\!webserver\!terslevnet.dk\www\webshop\admin\includes\functions\general.php on line 211 i get this warning in line 221 210 if (@date('Y', mktime($hour, $minute, $second, $month, $day, $year)) == $year) { 211 return date(DATE_FORMAT, mktime($hour, $minute, $second, $month, $day, $year)); } else { return ereg_replace('2037' . '$', $year, date(DATE_FORMAT, mktime($hour, $minute, $second, $month, $day, 2037))); } ------------------------ pls help Quote Jorn
jorn Posted April 28, 2004 Author Posted April 28, 2004 Product Returns Warning: unexpected error in date() in C:\!webserver\!terslevnet.dk\www\webshop\admin\includes\functions\general.php on line 211 i get this warning in line 221 210 if (@date('Y', mktime($hour, $minute, $second, $month, $day, $year)) == $year) { 211 return date(DATE_FORMAT, mktime($hour, $minute, $second, $month, $day, $year)); } else { return ereg_replace('2037' . '$', $year, date(DATE_FORMAT, mktime($hour, $minute, $second, $month, $day, 2037))); } ------------------------ pls help i Have change line 211 to return strftime(DATE_TIME_FORMAT, mktime($hour, $minute, $second, $month, $day, $year)); and is works for me. Quote Jorn
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.