PHP Date function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

PHP Date function

Why the php date function with the following parameter not working date_default_timezone_set

27th Nov 2019, 3:04 AM
AspiringDev
4 Answers
+ 1
Hi, thanks for taking a look at my question. Earlier when I was trying the following code <?php date_default_timezone_set("Asia/Kolkata"); echo date("h:i:sa"); ?> I was getting error upon running it but it's working fine now. Thanks for taking the time to answer my question.
2nd Dec 2019, 8:47 PM
AspiringDev
0
What did you do? What error did it show?
2nd Dec 2019, 4:40 PM
Michael Arawole
Michael Arawole - avatar
0
What did you do? What error did it show?
2nd Dec 2019, 4:41 PM
Michael Arawole
Michael Arawole - avatar
2nd Dec 2019, 4:41 PM
Michael Arawole
Michael Arawole - avatar