Skip to content

IOS journal date picker chooses the wrong date #693

Closed

Description

@hdansou

Search first

  • I searched and no similar issues were found

What Happened?

On iOS, when we click on a journal date in the future, it selects the following day. This is happening on a device where the time zone is GMT -6.

Reproduce the Bug

On iOS, when we tap a future journal date, it selects the following day. This is happening on a device set to GMT-6.

Expected Behavior

No response

Files

No response

Browser, Desktop or Mobile Platform Information

IOS 26.1
Logseq build 224

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Activity

  1. alexdmtv commented on May 25, 2026

    @alexdmtv

    I can reproduce what looks like the same class of bug in America/Los_Angeles timezone.

    Platform:

    • iOS TestFlight DB app
    • Timezone: America/Los_Angeles
    • Revision: 94ccc71
    • iOS version: 26.4.2
    • Device: iPhone 14 Pro Max

    Steps:

    1. Open the daily journal page.
    2. Tap the calendar button.
    3. Tap a specific date.
    4. The app opens/selects the previous date from the one I tapped.

    Expected:
    The tapped date should open.

    Actual:
    The previous date opens.

    Additional context:
    This may be related to date-only string parsing in the mobile calendar path. From the current public source, the native iOS picker appears to return a yyyy-MM-dd string, and the CLJS side appears to parse it with js/Date before converting it to a journal title.

    In JavaScript, date-only strings like 2026-05-25 are parsed as midnight UTC. In timezones behind UTC, such as America/Los_Angeles, that UTC midnight can become the previous local calendar day. For example, 2026-05-25T00:00:00Z is 2026-05-24 17:00 in Los Angeles during daylight saving time.

    Possible code path:

    • ios/App/App/UILocalPlugin.swift formats the selected date as yyyy-MM-dd in dateChanged
    • src/main/mobile/components/header.cljs calls (js/Date. date) inside open-journal-calendar!
  2. tiensonqin commented on Aug 31, 2026

    @tiensonqin
    Contributor

    Closing as stale: no replies in over 3 months. Please reopen if this is still happening on a current 2.0 / nightly build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions