Ad Widget

Collapse

Adding custom Time period selector to dashboard?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jtnfoley
    Member
    • Mar 2022
    • 78

    #1

    Adding custom Time period selector to dashboard?

    I'd like to add "Today since 05:00" to match our business hours to the Dashboard "Time Period Selector" in addition to "Today so far" "This week" "Last 2 days" etc.

    Does anyone have a toehold on how to make this change? My inner Linux/UNIX sysmonster led me to recursively grep "Day before yesterday" and found these two UI files:
    ./ui/include/func.inc.php: 'now-2d/d:now-2d/d' => _('Day before yesterday'),
    ./ui/locale/en_US/LC_MESSAGES/frontend.pot:msgid "Day before yesterday"
    I don't see a time-only absolute value example in the source code, and trying to edit the url string to remove the "from" year yielded this error page:



    Click image for larger version

Name:	image.png
Views:	4
Size:	12.7 KB
ID:	510693

    Am I over thinking this? Is there a "Start of day" functionality in Administration? I have Working Time set but it doesn't seem to cause "today" to move from 00:00 to 05:00 (and I'm not certain I'd want it to...)
Working...