Medium / medium-wordpress-plugin

The official WordPress plugin for cross-posting to Medium.
https://medium.com
Apache License 2.0
211 stars 40 forks source link

Medium Error: If specified, publishedAt must be in the past. (2014) #106

Closed koffisani closed 8 years ago

koffisani commented 8 years ago

I'm using WP 4.5.2 and facing this issue when posting my articles.

Medium Error: If specified, publishedAt must be in the past. (2014)

Is it a bug ?

huckphin commented 8 years ago

Hello @koffisani: There is not a known issue at this time. Can I get the following information from you to help debug? May I ask you to attempt to cross-post again, and provide me with the following information?

Medium Username, DateTime that you tried to cross-post (including the time zone), the TimeZone your WordPress installation is set to.

From there, I can inspect the logs, and learn more information about this. Thanks!

koffisani commented 8 years ago

Hello @huckphin, sorry for my silence. See bellow the informations you requested : Medium username : @koffisani DateTime I tried to cross-post : 2016-07-26 19 : 14 GMT+1 DateTime of my WP : 2016-07-26 20 :14 GMT+2 [Paris/France]

Screen shot Thanks.

huckphin commented 8 years ago

No worries. Thank you for providing that information! That helped me track down the actual issue. For the actual details, the post that you provided failed to post because your server is thirteen seconds ahead of our server, which is technically in the future. This was very helpful. Thank you for reaching back out to us.

I should have time this week to put in a fix.

koffisani commented 8 years ago

Hi @huckphin. Is it right now ? I think itsn't solved.

jan-vandenberg commented 6 years ago

I just had this very same error.

vovafeldman commented 5 years ago

@huckphin I think that the plugin doesn't take WP timezone (set in the settings) into consideration when preparing the publication date for Medium. I was getting the error from a server with a properly synced clock. After changing the timezone to UTC in the WP Admin -> Settings -> General, it started working.