Skip to content

datefmt_create: No such time zone: 'Europe/Paris': U_ILLEGAL_ARGUMENT_ERROR on FreeBSD #2146

Open
@SeafireGit

Description

@SeafireGit

Related to #2141

As stated, I had problem with a datefmt_create error.
I updated to shaarli v0.14.0 and the problem is still there.

Full stack trace :

Erreur : datefmt_create: No such time zone: 'Europe/Paris': U_ILLEGAL_ARGUMENT_ERROR

        datefmt_create: No such time zone: 'Europe/Paris': U_ILLEGAL_ARGUMENT_ERROR
/usr/local/share/web/shaarli/application/Utils.php324
#0 /usr/local/share/web/shaarli/application/Utils.php(324): IntlDateFormatter->__construct()
#1 /usr/local/share/web/shaarli/tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php(318): format_date()
#2 /usr/local/share/web/shaarli/inc/rain.tpl.class.php(190): include('...')
#3 /usr/local/share/web/shaarli/application/render/PageBuilder.php(252): RainTPL->draw()
#4 /usr/local/share/web/shaarli/application/front/controller/visitor/ShaarliVisitorController.php(70): Shaarli\Render\PageBuilder->render()
#5 /usr/local/share/web/shaarli/application/front/controller/visitor/BookmarkListController.php(123): Shaarli\Front\Controller\Visitor\ShaarliVisitorController->render()
#6 [internal function]: Shaarli\Front\Controller\Visitor\BookmarkListController->index()
#7 /usr/local/share/web/shaarli/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func()
#8 /usr/local/share/web/shaarli/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke()
#9 /usr/local/share/web/shaarli/application/front/ShaarliMiddleware.php(55): Slim\Route->__invoke()
#10 [internal function]: Shaarli\Front\ShaarliMiddleware->__invoke()
#11 /usr/local/share/web/shaarli/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()
#12 [internal function]: Slim\DeferredCallable->__invoke()
#13 /usr/local/share/web/shaarli/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()
#14 /usr/local/share/web/shaarli/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->Slim\{closure}()
#15 /usr/local/share/web/shaarli/vendor/slim/slim/Slim/Route.php(268): Slim\Route->callMiddlewareStack()
#16 /usr/local/share/web/shaarli/vendor/slim/slim/Slim/App.php(503): Slim\Route->run()
#17 /usr/local/share/web/shaarli/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke()
#18 /usr/local/share/web/shaarli/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack()
#19 /usr/local/share/web/shaarli/vendor/slim/slim/Slim/App.php(297): Slim\App->process()
#20 /usr/local/share/web/shaarli/index.php(202): Slim\App->run()
#21 {main}
      

I tried to change timezone in my php.ini both with the timezone and without it.

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone = 

I did the same in data/config.json.php

    "general": {
        "header_link": "\/",
        "links_per_page": 20,
        "enabled_plugins": [
            "qrcode",
            "readitlater"
        ],
        "default_note_title": "Note: ",
        "retrieve_description": true,
        "enable_async_metadata": true,
        "tags_separator": " ",
        "timezone": "Europe/Paris",
        "title": "*****"
    },

Versions :

  • FreeBSD 14.2
  • php83-8.3.21 PHP Scripting Language (8.3.X branch)
  • nginx-1.28.0,3 Robust and small WWW server

Metadata

Metadata

Assignees

No one assigned

    Labels

    serversupportinstallation and configuration issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions