So I've checked the list of supported time zones in PHP and I was wondering how could I include them in the date(); function? Thanks!
I don't want a default timezone, each user has their timezone stored in the database, I take that timezone of the user and use it. How? I know how to take it from the database, not how to use it, though.
Try this. You can pass either unix timestamp, or datetime string
You can replace database value in date_default_timezone_set function, date_default_timezone_set(SOME_PHP_VARIABLE); but just needs to take care of exact values relevant to the timezones.