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

Date format(YYYYMMDD) not working properly for start/end Date #324

Open
zacharycode opened this issue Mar 1, 2024 · 2 comments
Open

Date format(YYYYMMDD) not working properly for start/end Date #324

zacharycode opened this issue Mar 1, 2024 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@zacharycode
Copy link

When my date format is set to YYYY-MM-DD, there are no issues, but when the date format is set to YYYYMMDD, the settings for the start date and end date become ineffective.

YYYYMMDD

searchType: tag
searchTarget: weight
dateFormat: YYYYMMDD
startDate: 20240201
endDate: 20240203
fitPanelWidth: 1
line:
    title: Weight Log
    yAxisLabel: Weight
    yAxisUnit: kg
    lineColor: yellow

截屏2024-03-01 下午5 19 23

YYYY-MM-DD

searchType: tag
searchTarget: weight
dateFormat: YYYY-MM-DD
startDate: 2024-02-01
endDate: 2024-02-03
fitPanelWidth: 1
line:
    title: Weight Log
    yAxisLabel: Weight
    yAxisUnit: kg
    lineColor: yellow

截屏2024-03-01 下午5 19 29

@lazyguru
Copy link
Collaborator

Whatever you set the date format to, that's how your files need to be named as well. I did the following:

  • Open example vault
  • Copy 20210101-D, 20210102-D, 20210103-D, 20210104-D to new files without the -D
  • Go to TestCommands.md
    • Edit the Line Chart example and set
      • dateFormat: YYYYMMDD
      • startDate: 20210101
      • endDate: 20210131

And it works as expected

@zacharycode
Copy link
Author

Thank you for your reply. In your experiment, there is only data from certain days in 2021, so the problem cannot be seen. When you add some data from 2018 and 2019, you will find that the set start and end times are invalid. Please see my new post pictures, thank you!!
1
2
3

@lazyguru lazyguru added bug Something isn't working help wanted Extra attention is needed labels Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants