php-general Digest 31 Jan 2012 11:02:02 -0000 Issue 7670

Topics (messages 316428 through 316431):

Zend Framework Tutorial
        316428 by: Yuri Yarlei

Time zone in date function
        316429 by: Ron Piggott
        316430 by: Simon J Welsh

EasyPHP 5.3.9 with PHP 5.3.9 and PHP 5.4.0 RC6
        316431 by: EasyPHP

Administrivia:

To subscribe to the digest, e-mail:
        [email protected]

To unsubscribe from the digest, e-mail:
        [email protected]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Hi people,

I wanna share the tutorial about Zend Framework there I'm doing
http://www.yuriyarlei.net/en/zend-framework-how-to-develop-introduction

Att,
Yuri Yarlei.
Java - OCJP 6
ZCE - Zend Certified Engineer for php 5.3
www.yuriyarlei.net/en
PHP, JAVA, CSS, ORACLE 10g, PostgreSQL;

--- End Message ---
--- Begin Message ---
On my clients account when I use “echo date(‘D, d M Y H:i:s');” the output is 5 
hours ahead of us.  How do I change it to my local time?  Is there a way to 
specify “Eastern” time zone?

I expect this would work:

echo date(‘D, d M Y H:i:s' , ( strtotime( date(‘D, d M Y H:i:s') – 21600  ) ) );

I would prefer to specify Eastern time, so if the web host changes a server 
setting it will remain in Eastern time zone.  Ron


Ron Piggott



www.TheVerseOfTheDay.info 

--- End Message ---
--- Begin Message ---
On 31/01/2012, at 2:55 PM, Ron Piggott wrote:

> 
> On my clients account when I use “echo date(‘D, d M Y H:i:s');” the output is 
> 5 hours ahead of us.  How do I change it to my local time?  Is there a way to 
> specify “Eastern” time zone?
> 
> I expect this would work:
> 
> echo date(‘D, d M Y H:i:s' , ( strtotime( date(‘D, d M Y H:i:s') – 21600  ) ) 
> );
> 
> I would prefer to specify Eastern time, so if the web host changes a server 
> setting it will remain in Eastern time zone.  Ron
> 
> 
> Ron Piggott


You can set the timezone for your script using date_default_timezone_set() 
http://php.net/manual/en/function.date-default-timezone-set.php
---
Simon Welsh
Admin of http://simon.geek.nz/


--- End Message ---
--- Begin Message ---
New major version : EasyPHP 5.3.9 with PHP 5.3.9 and PHP 5.4.0 RC6
Plus Apache 2.2.21, MySQL 5.5.20, PhpMyAdmin 3.4.9, Xdebug 2.1.3.

This version comes with a brand new administration page and new
features : several versions of #PHP can be installed, same version can
be installed several times with different settings, possibility to
switch from one to another with a single click...

Enjoy!

Website : http://www.easyphp.org
Screenshots : http://www.easyphp.org/screenshots.php
Facebook page : http://www.facebook.com/easywamp
Twitter : http://www.twitter.com/easyphp
Google+ : https://plus.google.com/109064253798905195298

--- End Message ---

Reply via email to