Advanced search  

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

Pages: [1]   Go Down

Author Topic: Problem with function localised_timestamp()  (Read 3672 times)

0 Members and 1 Guest are viewing this topic.

Andi

  • VIP
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 85
  • Join the Future
    • www.pragmamx.org
Problem with function localised_timestamp()
« 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 $
« Last Edit: January 24, 2005, 04:16:50 pm by Nibbler »
Logged
hope, I could help you... :)

Nibbler

  • Guest
Re: Problem with function localised_timestamp()
« Reply #1 on: January 23, 2005, 04:38:06 pm »

Unable to verify, but commited a probable fix anyway.
Logged

Andi

  • VIP
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 85
  • Join the Future
    • www.pragmamx.org
Re: Problem with function localised_timestamp()
« Reply #2 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  :)
Logged
hope, I could help you... :)
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.