XFileSharing Pro - Change date format?

Message
Author
xfileshare.eu
Posts: 17
Joined: May 06, 2010 11:55 am

Change date format?

#1 Postby xfileshare.eu » May 07, 2010 6:03 pm

Hi, is it possible to change the date format on the download page to the ITALIAN standard dd-mm-yyyy ?

Thanks, Denis

xfileshare.eu
Posts: 17
Joined: May 06, 2010 11:55 am

#2 Postby xfileshare.eu » May 11, 2010 12:36 am

Isn't possible ?

komi
Posts: 161
Joined: Nov 27, 2009 12:41 pm

#3 Postby komi » May 11, 2010 9:20 am

Everything's possible:

Code: Select all

$file->{file_created}=~s/(\d+)-(\d+)-(\d+)/$3-$2-$1/;

peterdays
Posts: 55
Joined: Mar 10, 2010 3:56 pm

#4 Postby peterdays » May 11, 2010 11:27 am

wont this screw up the script tho?

xfileshare.eu
Posts: 17
Joined: May 06, 2010 11:55 am

#5 Postby xfileshare.eu » May 11, 2010 8:45 pm

komi wrote:Everything's possible:

Code: Select all

$file->{file_created}=~s/(\d+)-(\d+)-(\d+)/$3-$2-$1/;


but where is the line I write?

komi
Posts: 161
Joined: Nov 27, 2009 12:41 pm

#6 Postby komi » May 11, 2010 10:09 pm

In 1.7 place it under:

Code: Select all

LIMIT 20",$file->{usr_id},$file->{file_created},$file->{file_created},$file->{file_id});
(line 798)
Last edited by komi on May 12, 2010 10:56 pm, edited 1 time in total.

xfileshare.eu
Posts: 17
Joined: May 06, 2010 11:55 am

#7 Postby xfileshare.eu » May 12, 2010 8:58 pm

komi wrote:In 1.7 place it under:

Code: Select all

LIMIT 20",$file->{usr_id},$file->{file_created},$file->{file_created},$file->{file_id});
(line 682)


In my index.cgi in line 682 :

Code: Select all


{
- 680         require Time::Elapsed;
- 681         my $et = new Time::Elapsed;
- 682         my $elapsed = $et->convert($wait);



if copy you code its wrong

komi
Posts: 161
Joined: Nov 27, 2009 12:41 pm

#8 Postby komi » May 12, 2010 10:56 pm

Sorry, correct line in latest version is 798.

xfileshare.eu
Posts: 17
Joined: May 06, 2010 11:55 am

#9 Postby xfileshare.eu » May 13, 2010 3:57 pm

komi wrote:Sorry, correct line in latest version is 798.


ok, thanks ! and for my files section is possible?


Return to “XFileSharing Pro”