Merging feature/charts-structure
This commit is contained in:
commit
e576d9a1f6
33
automate.php
33
automate.php
|
@ -89,39 +89,6 @@
|
|||
|
||||
/* [4] Test download via AJAX
|
||||
=========================================================*/
|
||||
$dates = array(
|
||||
'01 janv. 2015',
|
||||
'02 févr. 2015',
|
||||
'03 mars 2015',
|
||||
'04 avr. 2015',
|
||||
'05 mai 2015',
|
||||
'06 juin 2015',
|
||||
'07 juil. 2015',
|
||||
'08 août 2015',
|
||||
'09 sept. 2015',
|
||||
'10 nov. 2015',
|
||||
'11 oct. 2015',
|
||||
'12 dec. 2015',
|
||||
);
|
||||
|
||||
function correctDates($date){
|
||||
$date = str_replace('janv.', 'jan.', $date);
|
||||
$date = str_replace('févr.', 'feb.', $date);
|
||||
$date = str_replace('mars', 'march', $date);
|
||||
$date = str_replace('avr.', 'apr.', $date);
|
||||
$date = str_replace('mai', 'may', $date);
|
||||
$date = str_replace('juin', 'june', $date);
|
||||
$date = str_replace('juil.', 'july', $date);
|
||||
$date = str_replace('août', 'aug.', $date);
|
||||
|
||||
return strtotime($date);
|
||||
}
|
||||
|
||||
foreach($dates as $date)
|
||||
var_dump( date('d/m/Y H:i:s', correctDates($date)) );
|
||||
|
||||
|
||||
|
||||
$db = new lightdb('phone_db', __ROOT__.'/src/dynamic/');
|
||||
var_dump( array_keys($db->index()));
|
||||
$db->close();
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue