PHP date.timezone Problem — CyberPanel - WebHosting Control Panel for OpenLiteSpeed
CyberHosting

PHP date.timezone Problem

How to enable PHP date.timezone. Please help me.
PHP version 7.2
Screenshot: phpinfo.php
https://i.ibb.co/bNVrdMC/Screenshot-12.png
Screenshot: CMS script
https://i.ibb.co/YRD8bVV/Screenshot-11.png

Comments

  • php.ini

    uncomment and set the value

    [Date]
    ; Defines the default timezone used by the date functions
    ; http://php.net/date.timezone
    ;date.timezone =
    Cyberpanel Managed & Unmanaged Shared & VPS Hosting by Cyberpanel Experts.
    https://www.cyberhosting.org
    You can now earn with the Cyberhosting affiliate scheme. Join today
    https://www.cyberhosting.org/affiliates/
  • hi, how can i set date.timezone for specific website? (not for all sites so that i cannot set in php.ini)
  • Type your comment> @hennaboy said:
    > php.ini
    >
    > uncomment and set the value
    >
    > [Date]
    > ; Defines the default timezone used by the date functions
    > ; http://php.net/date.timezone
    > ;date.timezone =

    ;date.timezone = "America/New_York"

    But not working
  • You have it "commented" the ";" in front of the line means its not active.
    ;date.timezone = "America/New_York"

    Try this:
    date.timezone = "America/New_York"
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!