use lastActionDateTime if Piwik version is 1.12 or higher
fixes #3872 visitorlog ignores chosen period. It is now possible to choose day, week, month and year if Piwik version is 1.12