InstantSSH 3.1.2 and DateTimeZone::listIdentifiers

  • Hi @Nuxwin
    A customer tried to run a php script from the InstantSSH Shell with this content:

    PHP
    1. <?phpprint_r( DateTimeZone::listIdentifiers() );


    Then he got this output:

    Code
    1. Array()


    If i run the script as root i will got the timezones in the output.


    This is what i add this through the "app_sections"

    Code
    1. 'app_sections' => array(
    2. 'imscpbase',
    3. 'scp',
    4. 'sftp',
    5. 'rsync',
    6. 'php'
    7. ),


    Did i miss someting there?


    Thanks for advice.

  • Hello ;


    This is something that should be already fixed in Git but the problem is that the git version will not work with last released i-MSCP version. Well, You could try to add the following in the php application section:


    PHP
    1. 'packages' => array(
    2. 'tzdata'
    3. )


    And then, rebuild the jail by updating the plugin list.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206