fikiwan Posted June 16, 2013 Share Posted June 16, 2013 hello .... anyone here ...I try display datetime look the pic: why is the date that appears not the same as my computer thank regar Link to comment Share on other sites More sharing options...
paulonline2501 Posted June 16, 2013 Share Posted June 16, 2013 Dates are stored in a different format in databases. You need to change the format.See here:http://php.net/manual/en/function.date.php Link to comment Share on other sites More sharing options...
fikiwan Posted June 16, 2013 Author Share Posted June 16, 2013 ya ... I'm back from there and now I'm ask for help something here ... (Y) it's not from DB , but just im tried like this <?phpecho "date('Y-m-d H:i:s A') ->". date('Y-m-d H:i:s A');?> Link to comment Share on other sites More sharing options...
birbal Posted June 16, 2013 Share Posted June 16, 2013 Php date() will use timezone set up in the server when displaying date. You need override the timestamp to show time for other timezone. Where as the right bottom corner shows local time set in your machine. Link to comment Share on other sites More sharing options...
fikiwan Posted June 17, 2013 Author Share Posted June 17, 2013 OK .... thanks for your help ... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now