deejay-hub / timeline-lwc

:octocat: An interactive timeline for the Salesforce platform.
https://dave-norris.medium.com/
MIT License
266 stars 72 forks source link

Date type fields are timezone adjusted when they shouldn't be #274

Closed deejay-hub closed 12 months ago

deejay-hub commented 12 months ago

Time Warp version v1.12

Describe the bug When a date type field is used to plot against Time Warp the date used is timezone adjusted based on midnight. This means that for some users the positioning on the timeline appears to be incorrect.

To reproduce Steps to reproduce the behavior: Set Timezone to GMT-3

  1. Create a Task with date 2023-11-29
  2. Refresh Time Warp
  3. Scroll to the Task plotted
  4. Here you'll see the date/time used to plot is 2023-11-28 21:00

Expected behaviour The date/time used to plot should be 2023-11-29 00:00 where the time portion is ignored for users in different timezones

a3w commented 12 months ago

Thanks for the fast reply, @deejay-hub!

How can I get and apply the latest update in my org?

deejay-hub commented 11 months ago

@a3w If you're using the code as is you can download the latest code and package yourself from this repo since the fix is already in the main branch - some people are packaging the app themselves since they make specific changes.

We will release a new version of the official Time Warp component on the AppExchange here at the end of Jan. This includes this fix and others documented below.

Release notes -> https://dave-norris.medium.com/time-warp-roadmap-jan-2024-2837cbee21b1