Forum for users of JoomlaWatch / ExtraWatch for Joomla, Wordpress, Drupal, Magento, Prestashop

JoomlaWatch / ExtraWatch has following features: live real-time visitor statistics, location of your visitors on a map, blocking of users based on bad word list, front-end counters, click heat map, definition of goals and rules, graphs, directory size monitoring, monitoring of increase of database data in time, nightly email reports, interactive HTML5 chart of traffic flow within your website, SEO report with keyword statistics and keyword position trends

Welcome, Guest
Please Login or Register.    Lost Password?

Time and Date on joomlawatch
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Time and Date on joomlawatch
#448
Time and Date on joomlawatch 8 Years, 7 Months ago Karma: 0
I don't have much programming experience, so could somebody please tell me how to change the day in joomlawatch. It is displaying one day ago; i.e., 08.02.2008, while, today is the 9th in usa est time zone.
thanks
largtr (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#456
Re:Time and Date on joomlawatch 8 Years, 7 Months ago Karma: 31
Hi,
the actual time is taken from the server. So, when you do have a hosting service somewhere in europe, the time is taken by europe's timezone.

One solution for this might be, that you'll substract a constant in every date function.

eg.

$today = date("d.m.Y", time());

for

$today = date("d.m.Y", time() - 3600*24*HOURS );

(because time() returns time in seconds)

or, you can define:

$today = date("d.m.Y", time() - CONSTANT );

and add this constant into config.php

define('CONSTANT', 3600*24*6);

That's all I can suggest. This is also good feature that might be available in the new version.

Currently, I don't have much time to implement it, so any experiences from your side with this will be appreciated.

Hope it helped,

Cheers,

Matto
matto (Admin)
Moderator
Posts: 770
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#459
Re:Time and Date on joomlawatch 8 Years, 7 Months ago Karma: 0
Thanks matto,
And please delete the other posts from me; I didn't quite know if you received them, they are not necessary.

Here's what I did: in config.php I simply changed the Day Offset to +.75, I guess that advanced it 3/4 of a day. It works!!!

Also on line 289 of class.joomlawatch.html.php I added "m/d" in front of the time code: $row2->timestamp = date("m/d H : i : s", $row2->timestamp);

This puts the date on the same line as the registered hits.

Thanks for your help. JoomlaWatch is a really cool addition to my website.

Loren
largtr (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1

Latest News

Get the latest freelance project announcements
Follow CodeGravity.com

Download ExtraWatch™

ExtraWatch™ FREE is Joomla, Wordpress, Prestashop, Magento plugin with following features: Live Stats, Nightly Email Reports, Goals, Graphs, Anti-spam, History and more