This question has arisen because of working with dates. The problem is the following; getting the current time from the function getdate()
that takes the function time()
returns me a time that has nothing to do with my time zone (UTC + 0) and when using the function 'date_default_timezone_get ()' to see the default time zone returns Europe / Berlin (UTC + 1)
Looking in the PHP documentation I found this appendix Date / Time Support where it is defined as determine the time zone.
Based on this I believe that the time zone is determining it and I quote;
"Magic" assumption (if allowed by the operating system)
Since I have not set the time zone, the TZ environment variable is not defined in my operating system (this I'm not sure of but I've reviewed it in the advanced configuration of windows 10) and that the time zone returns is not equal to UTC.
Where does this "mágina assumption" come from in the time zone?