Changing time. Changing time.
 

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

Changing time.

Started by w00ter, February 29, 2004, 06:02:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

w00ter

Hey guys,

First thing, I love CPG.. works fantastic! However, there's one small and stupid thing I cant find anywhere!

The time showed at people's comments is completely off the real time, I couldnt find an option to change the time, so where is it grabbing the time from?

I feel dumb asking this.. but anyone know where I can change it?

Joachim Müller

it's showing the server's time (that might be in another time zone). This feature indeed has to be added in a future version of coppermine (some time offset admin option).

GauGau

w00ter

That'd be great..

Trying to figure out a way to just remove the time stamp..

w00ter

Okay.. I'm sorry.. but this is really starting to bug me !!
Isnt there any way of changing the time stamp on comments? Any?!
Any workaround would be very much appreciated!!

Thanks in advance!!

Viper007Bond

(Sorry if this forum's preference is over making a new thread rather than bumping an old thread on the same subject.)

Anyway, I'd REALLY like to see this and I doubt it'd be hard to add...

Joachim Müller

cpg1.4 (current devel version) will have an admin option that takes care of the server being in another time zone than the user. As this would require vast changes, I don't think someone will back-port it to the deprecated version cpg1.2.x (which you appear to be using). So the answer is: no, there's no quick fix (or there's nobody around who is willing to look into this in detail).

Joachim

Viper007Bond

Oh, my bad. I'm using 1.3.2 and just ran across this thread via a search. Didn't notice it was in the 1.2.x forum. :-[

Tranz

I guess it wouldn't be hard to do if you want to hard-code your timezone and add the offset hours to the time. You would just need to find all instances of time use, figure out the number of seconds in the time difference to add to the server time, which is likely in unix epoch time which is in seconds units. Then you have to convert the time to human readable format using the date() function.

Since you don't think it would be hard, you should go for it. It's just tedious.