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
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
- Set the device's date and time to the future.
- Open the app.
- Create a draft post.
- Tap on Publish and Publish Date option.
- Set the publish date to be in the future but before the device's date and time previously set.
- Observe the publish button says "PUBLISH NOW". This is somewhat expected as the device's date is in the future.
- Publish the post.
- Observe that the post is under the Published section instead of being scheduled.
- Open the post and navigate to the post settings.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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