forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: udgang99 on July 12, 2006, 11:58:42 pm

Title: Change the date of upload ?
Post by: udgang99 on July 12, 2006, 11:58:42 pm
I have a bunch of "old" pictures, that I'd like to date back to when they were created. Like if I uploaded a picture today, but wanted to set a "fake" uploaddate to like "january 1st 2001" ? This way, if I sorted the pictures after "date" this (faked) old picture would read as the oldest.
Title: Re: Change the date of upload ?
Post by: udgang99 on July 13, 2006, 12:47:15 am
I may be on the right track ... but I can't make it work !
I have acceced the databases, and found TWO varibles with the word "date" in them ...
One is called "mtime" - which looks like it displays the exact upload date/time ... but nothing happens if I change it ...
The other is called "ctime", and has 10 "random" numbers ... now, I'll bet they are NOT random, but I just can't make heads nor tail of them ...

Stats for one picture could look like this:   
mtime= 2006-07-06 19:51:07     
ctime= 1151657877

... anyone ... ?
Title: Re: Change the date of upload ?
Post by: Nibbler on July 13, 2006, 01:25:03 am
mtime = time of last view (used for last viewed meta album)
ctime = unix timestamp of when the pic was uploaded.

http://www.4webhelp.net/us/timestamp.php
Title: Re: Change the date of upload ?
Post by: udgang99 on July 14, 2006, 09:26:04 am
Perfect !!!   That works - thank you so much !