Add current time in php

Posted: June 10, 2015 in Uncategorized

Generally, When I used date field in phpmyadmin,it does not work perfectly .. when I retrieve that field it display some different date with time…so my strategy is set the current time in php server…by using follwing function:

date_default_timezone_set(‘Asia/Mumbai’);

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s