The API operates using GMT so you might as well too.
Make sure your local time/date and timezone on your server is set properly and let PHP handle your timezone/date conversions, use gmdate() to generate GMT. E.g. here's something I use:
Use the visualiser to get an idea of what requests actually work and what the working json looks like.
Make sure your local time/date and timezone on your server is set properly and let PHP handle your timezone/date conversions, use gmdate() to generate GMT. E.g. here's something I use:
PHP Code:
$unixtime=time(); // unix timestamp for now
$datetimefrom = gmdate('Y-m-d\TH:i:s\Z', $unixtime+300); // Five minutes from now
$datetimeto = gmdate("Y-m-d\TH:i:s\Z", $unixtime+3*3600); // 3 hours from now






Comment