Skip to content

UIs - Fix usage of Date (don't use browser date) #26245

Closed

Description

@JazzarKarim

Please see Sev's comment: bcgov/business-ui#73 (comment)

We ultimately don't want to use new Date(). This is since the user could can change their operating clock and this will cause wrong results. Need to fix this for all UIs perhaps.

The older UIs use a Date Mixin, and webserver polling, to resolve this. That code is clunky though and not ideal.

Also, we probably don't want to use moment to fix this issue. Might a little bit of research to see the best solution here.

Activity

  1. added
    Entities Team
    on Feb 28, 2025
  2. changed the title [-]UIs - Fix usage of Date[/-] [+]UIs - Fix usage of Date (don't user browser date)[/+] on Mar 5, 2025
  3. changed the title [-]UIs - Fix usage of Date (don't user browser date)[/-] [+]UIs - Fix usage of Date (don't use browser date)[/+] on Mar 5, 2025
  4. severinbeauvais commented on Oct 10, 2025

    @severinbeauvais
    Collaborator

    Research the following:

    1. analyze code to see what could go wrong in the UI if the date/time is incorrect
    2. see what solutions might exist for our UIs to use a known good date
  5. severinbeauvais commented on Oct 27, 2025

    @severinbeauvais
    Collaborator

    Analyzed and reviewed with Olga Oct 24, 2025:
    "This seems to work at the moment. We can fix if an issue is reported." => do long term

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Entities Teamtechdebt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions