-
Notifications
You must be signed in to change notification settings - Fork 2
How to time travel in Voxxrin
Time is central to Voxxrin: a lot of features are based on current date & time :
- Past, Future and Ongoing events status on Event selector screen
- Timeslot progress bar, showing live progress on current timeslot
- Feedbacks can only be provided on ongoing/past timeslots
- Room Capacity indicator for upcoming timeslot
Given that time is all around in Voxxrin, it was crucial to be able to easily "move in time" for both demo and testing perspectives.
If you want to change time perceived by Voxxrin, there is an hidden developer trick that can be achieved:
- Open your favorite browser's Console in devtools (ex:
cmd+opt+C
on Chrome for Mac) - Execute following code:
_overrideCurrentClock("2024-04-17T10:00:00+02:00[Europe/Paris]", 'shifted')
where:
- first parameter (
2024-04-17T10:00:00+02:00[Europe/Paris]
) is a ISO 8601 Zoned Datetime-formatted string - second parameter (
shifted
|fixed
) tells how time is going to flow after statement is executed.shifted
means that 42s after this call, Voxxrin's time will be10:00:42
whilefixed
will stay at10:00:00
forever (unless you make another call to_overrideCurrentClock
)
If you want to get rid of your change, simply reload the page and time should be back to your current OS time.
Important note: Some screens (event schedule screen) will take timeshift into consideration automatically, few seconds after executing it. While some other screen (event selector screen) will require a back-and-forth navigation (example: navigate on user preferences screen and come back to event selector screen) to take timeshift into consideration.