Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add widget Current local time in website's timezone to include in screenshots #16025

Open
ywarnier opened this issue Jun 6, 2020 · 4 comments
Labels
c: New plugin For features that probably will not be added to Matomo, but could be implemented as plugins. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement.

Comments

@ywarnier
Copy link

ywarnier commented Jun 6, 2020

There are many cases where we take screenshots of our reporting dashboard at a specific time where we can see evidence of some specific activity that would otherwise be difficult to show later on (because of the compacting of data and the fact that some of the widgets are instant-based - like the Real Time Visitor Count).

Please consider adding a small "Current Local Time" widget in format date('y/m/d h:i:s') modified to the local time of the observed portal.
Not sure in which widget category to place it thouhg. Maybe "Visitors" or "About Matomo"...

Something like this:
matomo-local-time

I was going to say that it didn't need to be updated every second (every minute is enough), but given it's probably just going to be some light JS, that should be alright. As an alternative, it could only show a max precision of minutes, but I anticipate someone would later ask for more precision...

For specs on what to implement please see the comment from @tsteur in #16025 (comment)

@tsteur tsteur added Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. c: New plugin For features that probably will not be added to Matomo, but could be implemented as plugins. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement. labels Jun 7, 2020
@tsteur
Copy link
Member

tsteur commented Jun 7, 2020

Thanks @ywarnier that would make a useful widget that people could put in their dashboard etc. 👍

@aouinag
Copy link

aouinag commented Jul 14, 2020

I want to work on this widget but i don't know where to start

@sgiehl
Copy link
Member

sgiehl commented Jul 14, 2020

@aouinag Have a look at our developer guides. There is also a part about creating widget. https://developer.matomo.org/guides/widgets
Not sure if that should/need to be part of core. If not you may create a new plugin for that and publish it on the marketplace.

@tsteur
Copy link
Member

tsteur commented Apr 15, 2021

Title of widget: "Current local time in website's timezone". I'm thinking this be most useful especially when the site is not in the same timezone as you are (which can be the case fairly often).

If you are for example based in LA, and the site is configured to be in NY, then we'd want to show the current time in NY.

Additionally, if the local time is different from the site's time, then we show both times and we label accordingly which is the local time and which is the time in the site's timezone.

The shown time should update every minute. We don't show the seconds part of the time. The time should be updated using JavaScript (not using a request or by updating the widget as it can cause a lot of extra unneeded requests when having thousands of active users at the same time).

@tsteur tsteur changed the title Add widget Current local time to include in screenshots Add widget Current local time in website's timezone to include in screenshots Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: New plugin For features that probably will not be added to Matomo, but could be implemented as plugins. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement.
Projects
None yet
Development

No branches or pull requests

5 participants