Push Schedule

The Push notification API takes a “string” to enable a scheduled delivery of push notification. This sting used to work with a Unix Timestamp. It appears that no longer works?

If I send : 1477672407

I get:
“details”: [{“error_type”: “invalid”, “errors”: [“Not a valid datetime.”], “parameter”: “scheduled”}

What format are you expecting?

Timestamps should be sent as an rfc3339 datetime string with a zero offset for timezone.
Full documentation here:
https://www.ietf.org/rfc/rfc3339.txt

1 Like

For anyone who need to use it in PHP:

$dateTime= date("c", strtotime("2016-12-10 10:23:00"));
1 Like