Push Schedule


#1

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?


#2

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


#3

For anyone who need to use it in PHP:

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