Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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

Jorn

Posted
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.

Jorn

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...