diff options
author | Felix Schwarz <felix.schwarz@oss.schwarz.eu> | 2014-12-04 13:07:55 +0300 |
---|---|---|
committer | Felix Schwarz <felix.schwarz@oss.schwarz.eu> | 2014-12-26 19:47:24 +0300 |
commit | 9eb6ed6ba4037a4115fdf2a212941cafdf5238e2 (patch) | |
tree | 256a7c0a2ea2b3a99fa2b5f64f6ef57c78ab3a98 | |
parent | 4d01a884abb274de97492721fe576be0131238d2 (diff) |
include server time (as timestamp) in visitor actions (visitor live API)
v2: rename attribute to 'timestamp' as suggested by mattab in pull request #6814
-rw-r--r-- | plugins/Live/Visitor.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/Live/Visitor.php b/plugins/Live/Visitor.php index e1ab974efd..84f1ef8177 100644 --- a/plugins/Live/Visitor.php +++ b/plugins/Live/Visitor.php @@ -398,6 +398,7 @@ class Visitor implements VisitorInterface // Convert datetimes to the site timezone $dateTimeVisit = Date::factory($details['serverTimePretty'], $timezone); $details['serverTimePretty'] = $dateTimeVisit->getLocalized(Piwik::translate('CoreHome_ShortDateFormat') . ' %time%'); + $details['timestamp'] = $dateTimeVisit->getTimestamp(); } $visitorDetailsArray['goalConversions'] = count($goalDetails); return $visitorDetailsArray; |