sheraz4pro
-
Posts
2 -
Joined
-
Last visited
Posts posted by sheraz4pro
-
-
I am new to PHP. i am working on an application in which logged in user will set datatime on which they want to be notified about some event. On that time, server will send email to the user. The problem is i have to send emails relative to user's specified datetime. i have got following information of user timezone.
GMT , OFFSET.
Now i don't know how to calculate/convert user date/time to server datetime. Please guide or give me some example code.
i ahve serached the net but unable to understand it because they are using timezone somthing like it
$userTimezone = new DateTimeZone('America/New_York');
but i don't have timezone in this format. i only have offset and GMT or UTC thing.
please guide me how i will convert it to server time.
Cenvert user time to server Time
in PHP Coding Help
Posted
is there anyone who can guide me?