Changing the date format

Logs changes to the guild member list when the guild list is updated
Integrated into WoWRoster v1.7.1 and later

Changing the date format

Postby Carissma » Tue Aug 15, 2006 3:02 am

How do you change the date format from day/month/year to month/day/year? ... berlog&d=1


lol, nvm. I found it. It's in the memberlog.php file


Code: Select all
style="'.$wordings[$roster_conf["roster_lang"]]["ml_".$row['type']."_style"].'">'.date("G:i d/m/Y",$row['date']).'</td>'."\n";


Code: Select all
style="'.$wordings[$roster_conf["roster_lang"]]["ml_".$row['type']."_style"].'">'.date("G:i m/d/Y",$row['date']).'</td>'."\n";
Last edited by Carissma on Tue Aug 15, 2006 3:04 am, edited 1 time in total.
Carissma Apprentice Apprentice
Posts: 23
Joined: Tue Jul 11, 2006 9:03 pm

Changing the date format

Postby Averen » Tue Aug 15, 2006 3:05 am

Ah yes I really need to do something about that..

In your addons/memberlog/memberlog.php file

Fing, line 100

Code: Select all

.= '<td class="membersRowRight'. (($striping_counter 2) +1) .'" style="'.$wordings[$roster_conf["roster_lang"]]["ml_".$row['type']."_style"].'">'.date("G:i d/m/Y",$row['date']).'</td>'."\n";

In that line you can see

Code: Select all

("G:i d/m/Y",$row['date'])

Replace "G:i d/m/Y" with your desired date format.

(See here for date format info.)
User avatar
Roster AddOn Dev
Roster AddOn Dev
Posts: 152
Joined: Thu Jul 20, 2006 5:18 am

Return to Member Log

Who is online

Users browsing this forum: No registered users and 0 guests