magiausde / mctc

Custom twitch chat overlay (web page)
GNU Affero General Public License v3.0
0 stars 0 forks source link

Optional clock #31

Open magiausde opened 5 months ago

magiausde commented 5 months ago

This isn't really a "core feature" of mctc, but it's a nice idea to have a clock with separate styling available on the left or right side of the chat bar - optional, of course.

Might be useful if a international streamer uses mctc with viewers in different timezones.

It could show the streamers timezone, but maybe also (if wanted) the current time in other timezones (like news channels do it).

[magiausde] Oh wow, look - a new feature! | 11:38 CET

[magiausde] Oh wow, look - a new feature! | 6:38 am ET

[magiausde] Oh wow, look - a new feature! | 11:38 pm NZDT

magiausde commented 5 months ago

Stumbling across this issue: https://stackoverflow.com/questions/61094809/how-to-get-timezone-abbreviations-from-javascript-intl-datetimeformat

As currently, with Berlin, New York, Auckland I get CET, GMT-4, GMT+13

So maybe the user should be able to set his own name for the time shown

magiausde commented 5 months ago

First wip pushed, e4a94064bd5aaef9e0db8097e6a7baabfd4cf4e5

Example of how it could look right now: image

magiausde commented 5 months ago

Another idea to consider: Differentiate between the streamer's timezone and all others.

So the clock stays longer on the streamer's timezone and show it without the timezone maybe?