Besoin de convertir l'heure actuelle en IST (Inde Standard Time), stocké dans une variable PHP à l'heure UTC, et le stocker dans une autre variable en utilisant PHP.Comment convertir heure actuelle IST en heure UTC? Aussi besoin de trouver l'heure une heure avant cette heure UTC
<?php
date_default_timezone_set('Asia/Kolkata');
$Present=date('Y-m-d H:i');
echo $Present; //to be converted to utc
$GMT= gmdate('Y-m-d H:i', strtotime($Present));
?>
double possible de [php convertir datetime à UTC] (http://stackoverflow.com/questions/2095703/php-convert-datetime-to-utc) – NID