Adult Script Pro Community Forums

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.

#1 2013-05-27 07:12:51

discuss4u
Member
Registered: 2013-03-06
Posts: 163

[FIXED IN 1.0.7] Timestamp Bug

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

#2 2013-05-27 08:41:35

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [FIXED IN 1.0.7] Timestamp Bug

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

#3 2013-05-27 16:18:13

discuss4u
Member
Registered: 2013-03-06
Posts: 163

Re: [FIXED IN 1.0.7] Timestamp Bug

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

#4 2013-05-27 17:44:23

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [FIXED IN 1.0.7] Timestamp Bug

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

#5 2013-05-30 01:07:09

discuss4u
Member
Registered: 2013-03-06
Posts: 163

Re: [FIXED IN 1.0.7] Timestamp Bug

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

#6 2013-05-30 08:56:01

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [FIXED IN 1.0.7] Timestamp Bug

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

#7 2013-05-31 00:51:01

discuss4u
Member
Registered: 2013-03-06
Posts: 163

Re: [FIXED IN 1.0.7] Timestamp Bug

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

#8 2013-05-31 07:59:09

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [FIXED IN 1.0.7] Timestamp Bug

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

#9 2013-06-01 11:35:12

discuss4u
Member
Registered: 2013-03-06
Posts: 163

Re: [FIXED IN 1.0.7] Timestamp Bug

Well, the fix does not work.

Do you mean to replace:

<?php echo $this->video['add_date']; ?>

Thanks!

Offline

#10 2013-06-01 12:41:42

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [FIXED IN 1.0.7] Timestamp Bug

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

Board footer

Powered by FluxBB