@mattab opened this Issue on April 6th 2008 Owner

... so that the users can see their today stats.

we've received many emails from users who didn't notice that yesterday was selected by default (the UI is quite bad at this level btw)

@anonymous-piwik-user commented on April 25th 2008

Attachment: Possible Solution Patch
patch_174.txt

@anonymous-piwik-user commented on April 25th 2008

Attachment: Patch V.1.1
patch_174_1.txt

@anonymous-piwik-user commented on April 25th 2008

I added a section installation and an value installation_date to the config.ini.php file and before redirecting to the index page I added an check if today equal installation date. If this is the case, I override die default_day value.

@mattab commented on April 25th 2008 Owner

Christian, it doesn't work, because if you add a new website it has to do the same for this new website
you must compare the value against Site->getCreationDate()

@anonymous-piwik-user commented on April 25th 2008

Sorry, I wasn't aware of this aspect. In the current patch I added da function isToday to the Piwik_Date Class. With is function I check if Site->getCreationDate() is today

@mattab commented on May 29th 2008 Owner

(In [496]) - fix #5594: The first day piwik has been installed, date should default to "today" instead of yesterday.
Thanks Christian for the patch

This Issue was closed on May 29th 2008
Powered by GitHub Issue Mirror