| View previous topic :: View next topic |
| Author |
Message |
xfileshare.eu
Joined: 06 May 2010 Posts: 17
|
Posted: May 07, 2010 6:03 pm Post subject: Change date format? |
|
|
Hi, is it possible to change the date format on the download page to the ITALIAN standard dd-mm-yyyy ?
Thanks, Denis |
|
| Back to top |
|
 |
xfileshare.eu
Joined: 06 May 2010 Posts: 17
|
Posted: May 11, 2010 12:36 am Post subject: |
|
|
| Isn't possible ? |
|
| Back to top |
|
 |
komi
Joined: 27 Nov 2009 Posts: 159
|
Posted: May 11, 2010 9:20 am Post subject: |
|
|
Everything's possible:
| Code: | | $file->{file_created}=~s/(\d+)-(\d+)-(\d+)/$3-$2-$1/; |
|
|
| Back to top |
|
 |
peterdays
Joined: 10 Mar 2010 Posts: 55
|
Posted: May 11, 2010 11:27 am Post subject: |
|
|
| wont this screw up the script tho? |
|
| Back to top |
|
 |
xfileshare.eu
Joined: 06 May 2010 Posts: 17
|
Posted: May 11, 2010 8:45 pm Post subject: |
|
|
| komi wrote: | Everything's possible:
| Code: | | $file->{file_created}=~s/(\d+)-(\d+)-(\d+)/$3-$2-$1/; |
|
but where is the line I write? |
|
| Back to top |
|
 |
komi
Joined: 27 Nov 2009 Posts: 159
|
Posted: May 11, 2010 10:09 pm Post subject: |
|
|
In 1.7 place it under: | Code: | | 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 |
|
| Back to top |
|
 |
xfileshare.eu
Joined: 06 May 2010 Posts: 17
|
Posted: May 12, 2010 8:58 pm Post subject: |
|
|
| komi wrote: | In 1.7 place it under: | Code: | | LIMIT 20",$file->{usr_id},$file->{file_created},$file->{file_created},$file->{file_id}); | (line 682) |
In my index.cgi in line 682 :
| Code: |
{
- 680 require Time::Elapsed;
- 681 my $et = new Time::Elapsed;
- 682 my $elapsed = $et->convert($wait);
|
if copy you code its wrong |
|
| Back to top |
|
 |
komi
Joined: 27 Nov 2009 Posts: 159
|
Posted: May 12, 2010 10:56 pm Post subject: |
|
|
| Sorry, correct line in latest version is 798. |
|
| Back to top |
|
 |
xfileshare.eu
Joined: 06 May 2010 Posts: 17
|
Posted: May 13, 2010 3:57 pm Post subject: |
|
|
| komi wrote: | | Sorry, correct line in latest version is 798. |
ok, thanks ! and for my files section is possible? |
|
| Back to top |
|
 |
|