joplin / joplin/plugin-templates
When using the date picker, the date I select gets reported one day earlier
- Dominant language
- TypeScript
- Stars
- 207
- Forks
- 40
- Avg merge
- 7d 16h
- Merged PRs (30d)
- 2
Description
At title says, my template works as expected except for the date picker. If I use the calendar pop-up and select 24 June, when the template is created the date displays 23 June. Same behavior if I type the date in or select from UI calendar. Even if I select "Today" the note that gets created shows yesterday's date.
Any idea why this is happening? Locale or time zone issue? I've using various times for the tests, and the times are displayed correctly.
I am fairly certain my computer clock and the date on my watch are not one day ahead. ;)
(edit to add below)
Joplin 3.6.15 (prod, win32)
Device: win32, 13th Gen Intel(R) Core(TM) i7-1365U
Client ID: 03555af1ab4f4dc7839518afacd8dbb1
Sync Version: 3
Profile Version: 49
Keychain Supported: Yes
Alternative instance ID: -
Sync target: Joplin Cloud
Editor: Markdown
Revision: c615726
Backup: 1.5.1
Favorites 2: 1.6.0
Freehand Drawing: 4.3.0
History Panel: 1.0.4
Inline TODO: 2.1.1
Menu items, Shortcuts, Toolbar icons: 1.1.0
Note overview: 1.7.1
Note Tabs: 1.4.0
Outline: 1.5.15
Persistent Editor Layout: 2.2.0
Quick Links: 1.3.2
Secure Notes: 2.2.6
Tagging: 1.0.3
Templates: 3.0.0
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue in the Templates plugin on Windows by selecting and typing dates in the template date picker, including Today. Trace the date value from the picker through template creation and verify that the created note preserves the selected calendar date rather than displaying the previous day.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100