Skip to content

PM becomes AM in date header #622

@relict007

Description

@relict007

Hi Prot, I have started seeing a problem recently.

I am on emacs version:
GNU Emacs 30.1 (build 1, x86_64-pc-linux-gnu, cairo version 1.18.4) of 2025-06-28

Denote commit :
c69210b

Some relevant config:

(denote-rename-confirmations nil)
(denote-date-format [%Y-%m-%d %A %I:%M %p])

Now whenever I create a note using denote command, the note gets created fine with a proper header. However, whenever I create a note in the 2nd half of the day (i.e. in the PM) the header's #date: gets converted to AM, actual time stays ok.

For example, if I create a note at 07-07-2025 03:08 PM I get my header date as #+date: [2025-07-07 Monday 03:08 AM] instead of #+date: [2025-07-07 Monday 03:08 PM]. If I change it manually and save the file, it again reverts to AM as saving the file rewrites the header (because of denote-rename-confirmations). Note's identifier stays at 20250707T150843. I tried finding the root cause but overall date/time code seems a bit too complicated to me. Thanks for your time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions