HELP needed
I am stuck finding a solution for tags with dates. This is what I have in my tag files:
45 | $ws['tempMinMonthTime'] = date('YmdHis',strtotime('STAT$TEMPERATURE:MIN:THISMONTH:TIME$'));
46 | $ws['tempMinYearTime'] = date('YmdHis',strtotime('STAT$TEMPERATURE:MIN:THISYEAR:TIME$'));
It is translated by WeatherCat into
45 | 45 | $ws['tempMinMonthTime'] = date('YmdHis',strtotime('5 mars 2015 05:43'));
46 | $ws['tempMinYearTime'] = date('YmdHis',strtotime('1 janv. 2015 07:04'));
Than translated by the php parser into
$ws['tempMinMonthTime'] = '19700101010000';
$ws['tempMinYearTime'] = '19700101010000';
The php scripts expect "English" month name as in
45 | $ws['tempMinMonthTime'] = date('YmdHis',strtotime('12 Sep 2014 07:00'));
translated to
$ws['tempMinMonthTime'] = '20140912070000';
I understand that the date-format with the "French" month names comes from the localized settings on the Mac.
QUESTION: Is there a way to instruct WeatherCat to generate dates in either a different format or with English month names?
Without messing up the other WeatherCat output to the users window which should remeain in his/her own language?
I tried to scan the forum and my WeatherCat docs, but as English is not my native language I seem to be overlooking the obvious.
If there is a solution, does it work for the previous release also? A template has to support the latest and previous release of the WeatherProgram.
Wim