I am using a cakephp application.I want to get current time of Eastern timezone (EST) in my timepicker- now(). How would I achieve that.
I have set the default timezone in config/bootstrap.php as:
date_default_timezone_set('US/Eastern');
Configure::write('TimeZone', 'US/Eastern');
Time-picker used : jQuery Timepicker Addon By: Trent Richardson [http://trentrichardson.com] Cakephp Version : CakePHP 2.2.1
I have tried above code, its showing the EST time (UTC - 0500) when i echo the current time in php but when i alert the current time in the script it alerts the (UTC+05:30) time.
Please help me to solve this...