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

Get a schedule - Rendered Schedule Entries empty #479

Open
thombrooks opened this issue Sep 25, 2024 · 0 comments
Open

Get a schedule - Rendered Schedule Entries empty #479

thombrooks opened this issue Sep 25, 2024 · 0 comments

Comments

@thombrooks
Copy link

Summary:
If 'since' and 'until' parameters are just a few microseconds apart, the rendered schedule may be empty. If they match exactly, we get a rendered schedule as expected.

Explanation / How to reproduce:
We use 'get a schedule' to determine which person is working at a specific time and date. We wrote a function that takes the Team ID, and (optionally) the 'since' and 'until' parameters. If the user did not specify values for 'since' or 'until', we were getting the current datetime as ISO 8601 including microseconds... making TWO calls, one per parameter. The call failed sometimes but not others.

When we modified our function to get the current datetime ONCE, and then substituted in that one value when either parameter was not explicitly passed in, the functionality worked as expected.

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