Problem with Dateupdatedutc

Sync Blizzards' Armory data with WoWRoster (addon depreciated no longer works see ApiSync)

Moderators: Ulminia, poetter

Problem with Dateupdatedutc

Postby tarius » Fri May 25, 2007 3:39 pm

First of all, ArmorySync is working more or less fine. I got some Timeouts but i can live with this.

There is only one thing. The field dateupdatedutc that shows the last update in the roster is filled with 01.01. 00:00 after the update. Has someone an Idea how to prevent this? I use the german Armory and the update is in german too. Only the last update got this strange setting.

Regards
Tarius
tarius
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Wed Jul 26, 2006 10:50 am

Problem with Dateupdatedutc

Postby tuigii » Mon May 28, 2007 3:58 am

Hi,

Look at this page (the 16 page long thread) : http://www.wowroster.net/Forums/viewtop ... t=210.html which is talking about a small time modification routine :
Just before this line (in functions.general.php)
Code: Select all
return date("Y-m-d 00:00:00", strtotime($armoryDate));

you put :
Code: Select all
$localmonth = array("janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre");
$englishmonth = array("January","February","March","April","May","June","July","August","September","October","November","December");
$armoryDate = str_replace($localmonth,$englishmonth,$armoryDate);

Of course, change the first $localmonth line with your local german values.

This did it for me.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Re: Problem with Dateupdatedutc

Postby Kristoff22 » Tue Jun 19, 2007 2:15 am

Thanks tuigii, I'll add this to the localization.
Kristoff22
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 103
Joined: Mon Nov 13, 2006 5:54 am


Return to ArmorySync - Depreciated

Who is online

Users browsing this forum: No registered users and 1 guest

cron