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

Stream.new with NaiveDateTime with microseconds fails #71

Open
dbernheisel opened this issue Apr 9, 2020 · 0 comments
Open

Stream.new with NaiveDateTime with microseconds fails #71

dbernheisel opened this issue Apr 9, 2020 · 0 comments

Comments

@dbernheisel
Copy link

Looks like when microseconds are present, it cannot generate a stream of occurrences.

iex> Excal.Recurrence.Stream.new("FREQ=WEEKLY;BYDAY=MO,WE,FR", NaiveDateTime.utc_now())
{:error, :invalid_dtstart}

iex> Excal.Recurrence.Stream.new("FREQ=WEEKLY;BYDAY=MO,WE,FR", NaiveDateTime.truncate(NaiveDateTime.utc_now(), :second))
{:ok, #Function<54.48559900/2 in Stream.resource/3>}

This seems to be coming from the NIF where it's checking for null time

@dbernheisel dbernheisel changed the title NaiveDateTime with microseconds fails Stream.new with NaiveDateTime with microseconds fails Apr 9, 2020
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