Skip to content

RB adds extra date because of different timezone. #196

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

Closed
sandhiyakavi opened this issue Apr 19, 2021 · 3 comments
Closed

RB adds extra date because of different timezone. #196

sandhiyakavi opened this issue Apr 19, 2021 · 3 comments

Comments

@sandhiyakavi
Copy link
Collaborator

Description:
RB adds extra date because of different timezone which in turn adds extra WP's.

Steps to Reproduce:

  1. Create RB with only enddate. (14/4/2021)
  2. Edit RB date by adding start date (10/4/2021) from UI.
  3. GET RB details using endpoint (api) and observe. (start date is (9/4/2021))
  4. Observe the WP created for the RB (one WP created in extra).

since in UI it uses timezone of our browser, in api it uses UTC timezone and WorkPeriods it calculates using EDT timezone.

doubt

doubt_2

![image](https://user-images.githubusercontent.com/55895538/115200246-f4a5b480-a12e-11eb-83a8-afdd6f7e28e1.png)
@maxceem
Copy link
Contributor

maxceem commented Apr 22, 2021

We removed timezones and time from the Resource Bookings #204, so this should be no longer an issue.

@maxceem maxceem added this to the v1.6.0 - Work Periods milestone Apr 22, 2021
@sandhiyakavi
Copy link
Collaborator Author

Verified on Dev Env. Displaying correctly now.

new_change

new_change_2

@maxceem
Copy link
Contributor

maxceem commented Apr 22, 2021

Closing as it was a DEV issue only.

@maxceem maxceem closed this as completed Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants