Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Changing time.  (Read 4318 times)

0 Members and 1 Guest are viewing this topic.

w00ter

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
    • http://www.squeeky.net
Changing time.
« on: February 29, 2004, 06:02:53 pm »

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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Changing time.
« Reply #1 on: February 29, 2004, 09:40:46 pm »

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
Logged

w00ter

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
    • http://www.squeeky.net
Changing time.
« Reply #2 on: February 29, 2004, 10:28:30 pm »

That'd be great..

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

w00ter

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
    • http://www.squeeky.net
Changing time.
« Reply #3 on: March 26, 2004, 12:18:17 am »

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!!
Logged

Viper007Bond

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
    • Viper007Bond.com
Re: Changing time.
« Reply #4 on: December 16, 2004, 05:05:15 am »

(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...
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Changing time.
« Reply #5 on: December 16, 2004, 08:10:50 am »

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
Logged

Viper007Bond

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
    • Viper007Bond.com
Re: Changing time.
« Reply #6 on: December 16, 2004, 09:30:59 pm »

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. :-[
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Changing time.
« Reply #7 on: December 16, 2004, 09:56:06 pm »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 18 queries.