5 years ago in PHP Date and Time

How we can set default timezone for our PHP application or website?

[A] set_time_zone('UTC');
[B] default_date_timezone_set('UTC');
[C] date_default_timezone_set('UTC');
[D] default_timezone('UTC')
Loading...
Next Question

Overall Stats

Attempted 26
Correct 9
Incorrect 9
Viewed 8

Answers

Guest
Guest
AHMED SOULIMANI
AHMED SOULIMANI - 1 month ago

AHMED SOULIMANI from Casablanca, Morocco is saying default_timezone('UTC') is correct answer

nikita pawar
nikita pawar - 9 months ago

nikita pawar from Pune, India is saying default_date_timezone_set('UTC'); is correct answer

preeti
preeti - 2 years ago

preeti from Kolkata, India is saying set_time_zone('UTC'); is correct answer

R.Maghalakshmi
R.Maghalakshmi - 2 years ago

R.Maghalakshmi from Mumbai, India is saying default_date_timezone_set('UTC'); is correct answer

Payal
Payal - 2 years ago

Payal from Patna, India is saying date_default_timezone_set('UTC'); is correct answer

Related Questions

What is the difference, in seconds, between the current timestamp in the GMT time zone and the current timestamp in your local time zone?

  • [A] It depends on the number of hours between the local time zone and GMT
  • [B] There is no difference
  • [C] The two will only match if the local time zone is GMT
  • [D] The two will never match
  • [E] None of the above

................Checks a date for numeric validity.

  • [A] check_date
  • [B] verifydate
  • [C] Verify_date
  • [D] checkdate