• Resolved Peter K

    (@dragy)


    Hi

    I noticed that code running in this plugin is not following php.ini settings? I need set like error reporting and timezone.
    If I just run php code in new file: echo date_default_timezone_get(); it will show correct timezone.

    Bug or feature? Maybe you can write this to FAQ then, as some people will not figure out what is wrong.

Viewing 1 replies (of 1 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    The widget will run in the same context as WordPress itself does.

    However, note that WordPress sets the default timezone to UTC regardless of your own settings. This is one of the quirks in WordPress, it does it’s own time and date handling, so it overrides the PHP to UTC always in order to get that information set correctly.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP in widgets did not follow php.ini ?’ is closed to new replies.