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

Duration for overnight events #444

Open
markoj3s opened this issue Jun 29, 2018 · 1 comment
Open

Duration for overnight events #444

markoj3s opened this issue Jun 29, 2018 · 1 comment

Comments

@markoj3s
Copy link

markoj3s commented Jun 29, 2018

I don't know if it is for a specific purpose or simply a bug, but just in case of let me share what I am curious about:

Inside the Occurence class, duration method is defined as follows:

def duration
      end_time - start_time
end

 However, in the case of an overnight event, this would return a negative value.

Since it is a common case, I was thinking that this was maybe for a specific purpose I am not aware of ?

@andremiotto
Copy link

start_time and end_time must be 'datetime' format on the database

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

2 participants