Closed gsteel closed 9 years ago
Hi,
Thank you for the PR!
I agree with your getScheduledDate method that we should use a DateTime, that removes the seconds/milliseconds confusion.
However since maybeScheduledAt is for internal use anyway, I'd rather keep it the way we received it from Prismic and do the / 1000 in the getScheduledDate method.
Also, that's not mandatory but could you rebase and squash your commits to get a cleaner history?
Sorry, I tried squashing the commits and screwed it up...
No problem, squashing is preferred but we can do without.
Perhaps this might break BC as
getScheduledAt()
is returning something different, but, in PHP do you think it's fair to say that you'd expect a Unix timestamp rather than a JS timestamp anyway?