I have a question on taking timezones from users in PHP. I am getting user data on my server. In that user data, I am getting user date and time in UTC which is a default timezone.
For example- If the user sends data around 11:43 am, then in my end it's converting into UTC and getting time like 6:13 am (UTC+5:30). If the user sends data around 9:13 am, then it's coming at 6:13 am(UTC+3:00). I want user time at their end i.e., their timezone. The conclusion is need to get local time when we doesn't know timezone of user I tried many ways like DateTimeZone and date_default_timezone_set() and date_default_timezone_get(). Please help me out with this problem. Thanks in advance