Skip to content

How to time travel in Voxxrin

Frédéric Camblor edited this page Nov 13, 2024 · 1 revision

Playing with Time

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
Time on Event selector screen
  • Timeslot progress bar, showing live progress on current timeslot
Timeslot progress bar
  • Feedbacks can only be provided on ongoing/past timeslots
No Feedback allowed on future timeslots
  • Room Capacity indicator for upcoming timeslot
Room Capacity indicator is only provided for next upcoming timeslot

Time shifting

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 be 10:00:42 while fixed will stay at 10: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.