View unanswered posts | View active topics It is currently Sat Apr 27, 2024 10:24 pm



Reply to topic  [ 3 posts ] 
Use gmdate instead of date 
Author Message
pChart user
pChart user

Joined: Sat Sep 03, 2011 10:13 am
Posts: 5
Post Use gmdate instead of date
Hi

Currently you are using the date() function in pDraw::scaleFormat() to format a value. However, this may give some unexpected results, depending on the timezone set. I think it would be a good idea to use gmdate() instead.


Regards


Sat Sep 03, 2011 10:19 am
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Use gmdate instead of date
Hi,

I wasn't aware of this function. This is indeed a very good suggestion and I'll look into it.

Thanks!
JD.


Sat Sep 03, 2011 12:27 pm
Profile WWW
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Use gmdate instead of date
Just added it to the 2.1.4.

People will now need to define their server timezone before drawing the scale.

Code:
date_default_timezone_set('Etc/GMT');


Mon Sep 12, 2011 8:06 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron