Problem with function localised_timestamp() Problem with function localised_timestamp()
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Problem with function localised_timestamp()

Started by Andi, January 23, 2005, 02:38:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andi

Hello :)

every times i have this error message on my local test installation, when i change to another language than english.

Quote\include\init.inc.php
* Warning line 447: date() [function.date]: Windows does not support dates prior to midnight (00:00:00), January 1, 1970

I think the reason is

as example, the function localised_date() returns, by setting to german language, the following value: Mai 23, 2005
In the function localised_timestamp() the php-function strtotime() is in use, but this function works only with english datestrings.
In this example the value must be  May 23, 2005

hmmm, i have no idea to fix this ;)

  Coppermine version: 1.4.1
  $Source: /cvsroot/coppermine/devel/include/functions.inc.php,v $
  $Revision: 1.154 $
  $Author: tarique $
  $Date: 2005/01/20 08:40:04 $
hope, I could help you... :)

Nibbler

Unable to verify, but commited a probable fix anyway.

Andi

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fboard.pragmamx.de%2FSmileys%2Fdefault%2Fgenie.gif&hash=c84ca55ea9c8fb93b81a2633318d782dfb4d0d81)
Revision: 1.155

good job  :)
hope, I could help you... :)