I am writing some code that requires the timezone to be set. I'm using date_default_timezone_set()
but I am hardcoding the parameter to a specific city. I do not want to do this because other people will potentially run this code in other timezones or cities or states. Is there a way to dynamically set it somehow so I do not have to hardcode the value?
I do not want the user's timezone. I specifically want to be able to find the server's timezone that its running in.