Welcome, Guest
Please Login or Register.  Lost Password?

Time Stamp - Where is it pulling from
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: Time Stamp - Where is it pulling from
#631
Time Stamp - Where is it pulling from 2 Years, 1 Month ago Karma: 0
Can you tell me where the time stamp is pulling from? Global Configuration? Mine is one hour behind while in session.
mangotti
Senior Boarder
Posts: 48
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#632
Re:Time Stamp - Where is it pulling from 2 Years, 1 Month ago Karma: 1
Hi mangotti,

JLive! Chat gets the time from your MySQL database server. You may also want to check your Joomla website timezone setting located in Site -> Global Configuration -> Server -> Time zone.
admin
Administrator
Posts: 650
graph
User Offline Click here to see the profile of this user
Location: California
The CMS Fruit Team
The administrator has disabled public write access.
 
#633
Re:Time Stamp - Where is it pulling from 2 Years, 1 Month ago Karma: 0
Ok. I have no control over that since it is hosted elsewhere and I have attempted to change the Global Time with no luck. Is there a way to add an offset in the component?
mangotti
Senior Boarder
Posts: 48
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#634
Re:Time Stamp - Where is it pulling from 2 Years, 1 Month ago Karma: 1
No, unfortunately that is the only way to change the timestamp, and the time has to be correct or you may run into some online/offline issues. Depending on which version of MySQL you are using, you may want to google "mysql change time".

If you absolutely cannot change the MySQL database server time, then you would have to find all the places where the following function exists:

function timestamp()


and change it to use PHP's timestamp function which is time(), but the PHP time() function doesn't work so good all the time, so you may run into online/offline issues if you take this route. So you might replace the function timestamp() with:

Code:


function timestamp() {
    return time();
}

admin
Administrator
Posts: 650
graph
User Offline Click here to see the profile of this user
Location: California
The CMS Fruit Team
The administrator has disabled public write access.
 
#635
Re:Time Stamp - Where is it pulling from 2 Years, 1 Month ago Karma: 0
Am I looking for function timestamp() in all the PHP files for the component?
mangotti
Senior Boarder
Posts: 48
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#636
Re:Time Stamp - Where is it pulling from 2 Years, 1 Month ago Karma: 1
Yeah, but it will also exist in the plugin and module as well. You can do a global search on all php files for function timestamp()
admin
Administrator
Posts: 650
graph
User Offline Click here to see the profile of this user
Location: California
The CMS Fruit Team
The administrator has disabled public write access.
 
Go to topPage: 123