Skip to content

add a mode, where the browser do the timezone stuff calc #6478

@albertlast

Description

@albertlast

Description

I notice that the js is aware of time diff

var offset = new Date().getTimezoneOffset();
console.log(offset);

https://stackoverflow.com/questions/1091372/getting-the-clients-time-zone-and-offset-in-javascript/1091399#1091399

on the otherhand we got many loc for the calc of tz stuff.

idea would be to add a modus where the smf send all information in utc to the client and
the browser do the time calc.

possible addons here would,
since js is here aware of the datetime fields,
that smf could show post in relativ time and could update the times in a reasonable timeframe without a page refresh,
like github do:
grafik
start by "now" goes to minutes, hours, days...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions