RizbIT
Member
If you used date_set_timezone(timezone_utc); and then use date_current_datetime()
it would give a value that corresponds to the time on my phone right.
If im based in UK UTC is same as GMT so the time would be now and correct.
If i took that same phone to another country whos time was 5 hours ahead and then used
date_set_timezone(timezone_utc); and date_current_datetime() would it just pulll the time from the phone?
so which country you are in doesnt matter it just pulls the time set on the device?
so what difference does it make if you use timezone_local
The reason to ask is i have a button on the app that gets the time now, it should be the time of NOW in thats users country or device. I then need to convert it to UTC
it would give a value that corresponds to the time on my phone right.
If im based in UK UTC is same as GMT so the time would be now and correct.
If i took that same phone to another country whos time was 5 hours ahead and then used
date_set_timezone(timezone_utc); and date_current_datetime() would it just pulll the time from the phone?
so which country you are in doesnt matter it just pulls the time set on the device?
so what difference does it make if you use timezone_local
The reason to ask is i have a button on the app that gets the time now, it should be the time of NOW in thats users country or device. I then need to convert it to UTC