Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataStore.calendarNoteByDate(..., 'quarter') returns wrong quarter #523

Open
jgclark opened this issue Jan 27, 2024 · 0 comments
Open

DataStore.calendarNoteByDate(..., 'quarter') returns wrong quarter #523

jgclark opened this issue Jan 27, 2024 · 0 comments
Assignees
Labels
API bug Something isn't working P-1 Priority 1 (least)

Comments

@jgclark
Copy link
Collaborator

jgclark commented Jan 27, 2024

From manual checks, DataStore.calendarNoteByDate(today, 'quarter') returns wrong note on last day of quarter.

I've done some eye-ball checks from the extra logs, as you requested, @EduardMe.
So far these appear to have problems:

JSLog: [calendarNoteByDate] with date = 2023-09-30 23:00:00 +0000 / 20231001, timeframe = quarter, calculated filename = 2023-Q4.md
JSLog: [calendarNoteByDate] with date = 2024-03-31 23:00:00 +0000 / 20240401, timeframe = quarter, calculated filename = 2024-Q2.md

These calls for quarters almost certainly come from my call:

const currentQuarterlyNote = DataStore.calendarNoteByDate(today, 'quarter')

These checks were done in GMT, so no timezone offset to worry about.

Originally reported here in Discord.

@jgclark jgclark added bug Something isn't working API P-1 Priority 1 (least) labels Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API bug Something isn't working P-1 Priority 1 (least)
Projects
None yet
Development

No branches or pull requests

2 participants