norkunas / onesignal-php-api

OneSignal API for PHP
MIT License
233 stars 82 forks source link

Update format string for send_after parameter #71

Closed thoaionline closed 6 years ago

thoaionline commented 6 years ago

The UTC time offset is sufficient to specify a time.

t indicates the timezone itself. For example, in Melbourne/Australia where I live, t is parsed as AEST. The old string would be 2015-09-24 14:00:00 AEST+1000, which is incorrect because AEST by itself is UTC+1000. This caused OneSignal to double-handle the time zone (turning +1000 into +2000)

thoaionline commented 6 years ago

@norkunas the build failed for an unrelated reason, can you review and merge this PR?

norkunas commented 6 years ago

@thoaionline Thanks! ;) Could you also make a PR for 0.1 branch?