date_default_timezone_get Warning

Issue #32 wontfix
Former user created an issue

Originally reported on Google Code with ID 32 ```

What steps will reproduce the problem?

1. Fresh install 2. Put on a server that has full error reporting, even warnings and notices. 3. Browse to page.

What is the expected output?

A login form with no errors.

What do you see instead?

Warning: date_default_timezone_get() [function.date-default-timezone-get]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /home/mister-user/public_html/database/admin.php on line 68

What version of the product are you using?

1.8.5

On what operating system?

Ubuntu Linux 10.04 LTS

Please provide any additional information below.

```

Reported by `volomike` on 2011-06-01 09:22:59

Comments (2)

  1. Dane Iracleous

    ``` This warning is harmless. Turn off error reporting, and it will go away. There is no clean way around it. I tried adding the line "date_default_timezone_set(date_default_timezone_get());", which fixes this warning most of the time, but apparently for you, it is causing it.

    ```

    Reported by `diracleo` on 2011-06-02 07:31:22 - Status changed: `WontFix`

  2. Former user Account Deleted

    ``` Just add a @ before date_default_timezone_set(date_default_timezone_get()); like this:

    @date_default_timezone_set(date_default_timezone_get()); ```

    Reported by `serbanboanca` on 2012-01-04 10:38:14

  3. Log in to comment