The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!
You are not logged in.
Pages: 1
I have posted this before but after some more test, I can reproduce the bug on my server.
After a video is upload, there will be no problem.
However, when I try to edit it in the admin (change the name of it / choose another thumbnail as the first one to show in front end, say), the timestamp of add_time will be automatically set back to the server time zone. Yet, the add_date was kept unchanged. I have set the time zone in admin section, and the time zone set is different from that of the server time.
Offline
So when you edit a video, the add_time will be changed automatically?
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Yes, symtab you are right.
I have tried to checked the add_time before and after I edited a video. The add_time changed after I edited the video.
Offline
Ok. Will check and fix in next release (will release a bug fix release this week).
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Sorry, I think I have described the bug a bit wrongly
The timestamp might not be set to the server time. I have not checked it. It seems that it set to the same time from pm to am.
For instance, if the video was added at 20:00, add_time will be set to 08:00 automatically after I edit the video. This may explains why, for videos added in the morning (with respect to the timezone set in ASPRO script), the add_time is not changed after editing them.
Offline
Hmmm...probably a bug with strtotime. Will have to use something else.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Just done more test again. My feeling is that it is the 12-hour system which makes the problem.
Here is what I found.
Videos added between 00:00 - 00:59 will change to 12:00 - 12:59
Videos added between 13:00 - 13:59 will change to 01:00 - 01:59
Videos added between 14:00 - 14:59 will change to 02:00 - 02:59
....
and finally,
Videos added between 12:00 - 12:59 will remain unchanged
If I look at the column add_date, it is a 12-hour system without mentioning it is am or pm.
So, my guess is that using 24-hour system may fix it.
Offline
Edit admin/templates/default/video_edit.tpl.php and replace:
<?php echo $this->video['add_date']; ?>
with:
<?php echo date('Y-m-d H:i:s', $this->video['add_time']); ?>
This will fix the problem. Also add_date is not used in the script anymore, its only there for backwards compatibility.
Fix also added to 1.0.7.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Well, the fix does not work.
Do you mean to replace:
<?php echo $this->video['add_date']; ?>
Thanks!
Offline
Ahh...sorry, yes replace:
<?php echo $this->video['add_date']; ?>
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Pages: 1