Get Timezone GMT value and display current date and time using javascript with php

Hello friends,

in this article i will explain you that how to get current script running on which country and according to that you will get its GMT value and from GMT value how to find current date and time of that country using php i will show you in this article with example.

-once run above code, and after runnig above code you will get timezone value in textbox something like (GMT+05:30) if that script is accessing from INDIA.

-and according to that value if you want to display that GMT’s current date and time than using below code you will get its date and time using php

-in above function you have to pass only GMT value

Result will be display currently according to my running script something like : “2014-02-12 21:22:52″