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

FrontMatterParser should create the date or dateTime object based on the start/startTime provided #231

Open
vanish87 opened this issue Dec 10, 2023 · 0 comments

Comments

@vanish87
Copy link

src/helper/FrontMatterParser.ts

//Check for start and end date if there is none defined
    if (!frontmatter.start && !frontmatter.startTime) {
        frontmatter.start = { date: window.moment() }
    }

Google Calendar API will use
'start': {'date': For date only
'start': {'dateTime': For dateTime

Possible fix:

//Check for start and end date if there is none defined
if (!frontmatter.start)
{
    if(!frontmatter.startTime) frontmatter.start = { date: window.moment() }
    else {frontmatter.start = { dateTime: window.moment() }
}
@vanish87 vanish87 changed the title FrontMatterParser should create date or dateTime object based on start/startTime provided FrontMatterParser should create the date or dateTime object based on the start/startTime provided Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant