wordpress-mobile / wordpress-mobile/WordPress-Android

Posts with future publish dates are not scheduled if the device's date is set in the future

Open
#20,914 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Bug Post Settings Post Status Posting/Editing
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Expected behavior

The post is scheduled.

Actual behavior

The post is published at the current date and time (i.e. now).

Steps to reproduce the behavior
  1. Set the device's date and time to the future.
  2. Open the app.
  3. Create a draft post.
  4. Tap on Publish and Publish Date option.
  5. Set the publish date to be in the future but before the device's date and time previously set.
  6. Observe the publish button says "PUBLISH NOW". This is somewhat expected as the device's date is in the future.
  7. Publish the post.
  8. Observe that the post is under the Published section instead of being scheduled.
  9. Open the post and navigate to the post settings.
  10. Observe that the publish date is different from the one set and matches the actual "now" date and time.

[!NOTE]
This case works as expected when publishing on the browser and the iOS app. The post is scheduled.

Tested on Samsung Galaxy S20 FE 5G, Android 13, JPAndroid / WPAndroid 24.9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in the Android app by setting the device clock to the future and using the publish-date flow described in the steps. Trace how the selected date is classified when it is earlier than the device time, then verify that publishing places the post under Scheduled and preserves the selected publish date.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.