diff --git a/index.php b/index.php index 4327e7c..e5f696a 100644 --- a/index.php +++ b/index.php @@ -71,16 +71,16 @@ $aujourdhui = date("Y-m-d"); $diff = date_diff(date_create($daterencontre), date_create($aujourdhui)); if ($diff->format('%m') == 0) { - echo '

Nous nous sommes rencontrés il y a environ '.$diff->format('%y').' ans.
'; + echo '

Nous nous sommes rencontrés il y a environ '.$diff->format('%y').' ans.
'; }else{ echo '

Nous nous sommes rencontrés il y a environ '.$diff->format('%y').' ans et '.$diff->format('%m').' mois.
'; } - + $datecouple = "2022-08-28"; $aujourdhui = date("Y-m-d"); $diff = date_diff(date_create($datecouple), date_create($aujourdhui)); $diff_jours = (strtotime($aujourdhui) - strtotime($datecouple)) / 86400; - + if ($diff->format('%y') == 0){ if ($diff->format('%m') == 0) { echo '

Notre premier baiser 💋 était il y a '.$diff->format('%d').' jour(s).
'; @@ -101,7 +101,7 @@ $datecouple = "2022-08-28"; if ($diff->format('%d') == 0) { echo '

Notre premier baiser 💋 était il y a '.$diff->format('%y').' an(s) et '.$diff->format('%m').' mois !
'; }else{ - echo '

Notre premier baiser 💋 était il y a '.$diff->format('%y').' an(s), '.$diff->format('%m').'mois et '.$diff->format('%d').' jour(s).
'; + echo '

Notre premier baiser 💋 était il y a '.$diff->format('%y').' an(s), '.$diff->format('%m').' mois et '.$diff->format('%d').' jour(s).
'; } } @@ -130,7 +130,7 @@ echo "Cela fait " . $diff_jours . " jours.

";  31/12/2022 & 01/01/2023   Premier nouvel an ensemble 🎉  - +

Lieux visités ensemble

@@ -138,4 +138,3 @@ echo "Cela fait " . $diff_jours . " jours."; -