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-03-15 15:52:38

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

FTP upload - upload time bug

I have not check it thoroughly. Yet, it seems that when using FTP upload for videos, the add_time in the video table will be wrong.
For example, I use FTP upload to add video on 15 Mar 23:00:00, the timestamp store in add_time will be 15 Mar 11:00:00.

Please help to fix it.
Thanks!

Offline

#2 2013-03-15 16:00:33

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: FTP upload - upload time bug

im not expert but in your system check tool from ASP tool is all GREEN?

and go to your admin --> config --> server tab and there is choose for Timezone! maybe this is some reason

Last edited by thiva7 (2013-03-15 16:02:45)

Offline

#3 2013-03-15 16:08:40

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

Re: FTP upload - upload time bug

I have set the timezone. As far as I understand, the timestamp will not be affected by the timezone. So, I am not sure what is happening. I think symtab can help to answer the question here.

Offline

#4 2013-03-15 16:18:19

German-Porn-Tube
Member
From: Spain but german speaking ;-)
Registered: 2012-02-13
Posts: 34
Website

Re: FTP upload - upload time bug

what is your Server-Time?

you can se it with phpinfo

put:

<?php phpinfo(); ?>

in a File called "phpinfo.php"
put it on your server an open it in browser
like:

http://www.DOMAIN.tdl/phpinfo.php

lg
German-Porn-Tube


German-Porn-Tube.net bbcode test
http://www.tubeuploadtool.german-porn-tube.net <- 1000´s Videos upload per Day + Rewrite Titel and Description in many Languages

Offline

#5 2013-03-15 16:19:47

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

Re: FTP upload - upload time bug

Thanks for the information and help I have checked it. Server time is GMT. I set Asia/Taipei in the time zone setting of ASP.

Last edited by discuss4u (2013-03-15 16:20:15)

Offline

#6 2013-03-15 16:31:57

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

Re: FTP upload - upload time bug

The timezone I have set for the script is Asia/Taipei (GMT+8). So, the time should be something like 00:19 now.

I have just tried to add a new video using FTP upload and checked the timestamp stored in add_time in table video

It is 1363407213
This should be
GMT: Sat, 16 Mar 2013 04:13:33 GMT
GMT+8: Sat, 16 Mar 2013 12:13:33 GMT

In Admin-Video-Manage
I have checked the video and it shows that the add Date is 2013-03-16 12:13:33.

It seems that the 12 hr format is mixed with the 24 hr format. I will try to add another video after 01:00 (GMT+8) to see what happen.

Last edited by discuss4u (2013-03-15 16:34:40)

Offline

#7 2013-03-15 16:47:23

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: FTP upload - upload time bug

One more think....Change WHM timezone too...maybe somethink can fix

Home » Server Configuration » Server Time

Last edited by thiva7 (2013-03-15 16:48:38)

Offline

#8 2013-03-15 16:52:49

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

Re: FTP upload - upload time bug

Thanks for the suggestion. I will certainly try to change the timezone of the vps.

Offline

#9 2013-03-15 17:22:16

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

Re: FTP upload - upload time bug

Just added another video, the timestap in add_time is 1363367273
which yields
GMT: Fri, 15 Mar 2013 17:07:53 GMT
GMT+8: Fri, 16 Mar 2013 1:07:53

As I expect, the timestamp is correct after 01:00. I guess the problem only occurs between 00:00 - 01:00 and 12:00 - 23:59. I will test it again after 12:00 noon and 13:00 (GMT+8). It seems that this only occurs when using FTP upload.

Last edited by discuss4u (2013-03-15 17:29:57)

Offline

#10 2013-03-15 22:51:31

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

Re: FTP upload - upload time bug

Hmm..thats strange. Please create a file time.php in the folder where the script is installed and add:

<?php
define('_VALID', true);
require 'libraries/bootstrap.php';

phpinfo();

VF::close();
?>

Is the timezone the same? There might be a bug in the timezone config.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#11 2013-03-16 03:09:03

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

Re: FTP upload - upload time bug

date/time support                                 enabled
"Olson" Timezone Database Version                 0.system
Timezone Database                                 internal
Default timezone                                         Asia/Taipei

Yes it is the same as what I set.

Offline

#12 2013-03-16 10:16:31

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

Re: FTP upload - upload time bug

Just tested. timestamp mixed again when using ftp upload after 13:00

Offline

#13 2013-03-17 14:30:37

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

Re: FTP upload - upload time bug

Just find out that the same problem occurs for grabber

So I will suspect that it is a bug related to the timezone

Offline

#14 2013-07-08 12:28:09

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

Re: FTP upload - upload time bug

I think its a bug related to strtotime. I will debug and fix in 1.0.8.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB