forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: Andi on January 23, 2005, 02:38:53 pm

Title: Problem with function localised_timestamp()
Post by: Andi on January 23, 2005, 02:38:53 pm
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 $
Title: Re: Problem with function localised_timestamp()
Post by: Nibbler on January 23, 2005, 04:38:06 pm
Unable to verify, but commited a probable fix anyway.
Title: Re: Problem with function localised_timestamp()
Post by: Andi on January 24, 2005, 04:14:58 pm
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fboard.pragmamx.de%2FSmileys%2Fdefault%2Fgenie.gif&hash=c84ca55ea9c8fb93b81a2633318d782dfb4d0d81)
Revision: 1.155

good job  :)