Title: WP Rest API Wrong Time Calculated
Last modified: February 24, 2017

---

# WP Rest API Wrong Time Calculated

 *  [Wasca](https://wordpress.org/support/users/wasca/)
 * (@wasca)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/wp-rest-api-wrong-time-calculated/)
 * Hi Guys
 * We use the Rest API to add new custom posts but we are finding that the posts
   are getting “Scheduled” instead of published. Here is the scenario…
 * Server Time Hardware Time = Australia/Brisbane
    Server Time System Time = Australia/
   Brisbane
 * Wordpress Time Zone = Australia/Brisbane
 * Sample Time from the WordPress General Settings Page.
 * Universal time (GMT) is 2017-02-23 22:00:00. Local time is 2017-02-24 08:00:00.
 * If we create a new post with the REST API **before**
    -  10am Local time (Australia/Brisbane) it set the post to “Scheduled”
    - For example I insert a new post using the API at 2017-02-24 08:00:00 (Australia/
      Brisbane) it will schedule the post to 2017-02-24 18:00:00
    - As per these instructions [http://v2.wp-api.org/reference/posts/](http://v2.wp-api.org/reference/posts/)
      we are setting the “date” using the local time (Australia/Brisbane) when we
      create a post.
    - Any ideas why it’s doing this?
 *  -  This topic was modified 9 years, 3 months ago by [Wasca](https://wordpress.org/support/users/wasca/).

The topic ‘WP Rest API Wrong Time Calculated’ is closed to new replies.

## Tags

 * [time zone](https://wordpress.org/support/topic-tag/time-zone/)
 * [wp rest api](https://wordpress.org/support/topic-tag/wp-rest-api/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 0 replies
 * 1 participant
 * Last reply from: [Wasca](https://wordpress.org/support/users/wasca/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/wp-rest-api-wrong-time-calculated/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
