XFileSharing Free - Changing the date format

Message
Author
Bassman
Posts: 20
Joined: Sep 07, 2007 10:24 am

Changing the date format

#1 Postby Bassman » Oct 10, 2007 11:10 am

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

Cheers

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Oct 10, 2007 12:14 pm

Sure. In index.cgi find this line

Code: Select all

&message("Sorry but this file reached max downloads limit") if $c->{max_downloads_number} && $file->{downloads} >= $c->{max_downloads_number};
and add this code below:

Code: Select all

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

Bassman
Posts: 20
Joined: Sep 07, 2007 10:24 am

#3 Postby Bassman » Oct 10, 2007 9:30 pm

That worked
Thanks very much
:D

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

#4 Postby xfileshare.eu » May 07, 2010 3:46 pm

Please in new version 1.7 is possible?