mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-27 15:59:29 +00:00
Return time instead of day / month / year for countdown timer
This commit is contained in:
parent
9be24430b2
commit
f1cbb8dc8a
@ -177,9 +177,10 @@ class Posts {
|
||||
}
|
||||
|
||||
//Countdown timer specific
|
||||
$info["year_end"] = $src["annee_fin"];
|
||||
$info["month_end"] = $src["mois_fin"];
|
||||
$info["day_end"] = $src["jour_fin"];
|
||||
if($src['annee_fin'] != 0)
|
||||
$info["time_end"] = strtotime($src["annee_fin"]."/".$src['mois_fin']."/".$src["jour_fin"]);
|
||||
else
|
||||
$info["time_end"] = null;
|
||||
|
||||
//Weblink specific
|
||||
$info["link_url"] = $src["url_page"];
|
||||
|
Loading…
Reference in New Issue
Block a user