Hello I need to store a duration (0 à 24h)
in my database in the format 1970-01-01T00:00:00.000Z
So how to convert a value, Eg-: 2:00 to 1970-01-01T02:00:00.000Z
I tried this but the date isn't in GMT format
$date = "1970-01-01T00:00:00.000Z";
$v = date(DATE_ISO8601, strtotime('+2 hour', strtotime($date)));
$conn->update('measure', array('observence' => $v), array('id_measure' => 34943));
It return : 1970-01-01T03:00:00+0100
What I need : 1970-01-01T02:00:00.000Z
Thanks in advance for any help