Skip to content

SQLITE_ERROR: no such function: FROM_UNIXTIME #557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
throbbingcat opened this issue Aug 13, 2020 · 0 comments
Closed

SQLITE_ERROR: no such function: FROM_UNIXTIME #557

throbbingcat opened this issue Aug 13, 2020 · 0 comments
Labels

Comments

@throbbingcat
Copy link

I use the docker image with SQLite instead of mariadb or mysql.
This is a part of config.json

  "database": {
    "engine": "knex-native",
    "knex": {
      "client": "sqlite3",
      "connection": {
        "filename": "/data/database.sqlite"

It works so far but it seems the proper expiration date for a ssl cert cannot be saved. The expiration date shown in the backend is the date of generation and I found this in the log:

[8/13/2020] [4:39:00 PM] [SSL      ] › ✖  error     update `certificate` set `modified_on` = date('now'), `expires_on` = FROM_UNIXTIME(1605044184) where `id` = 1 and `provider` = 'letsencrypt' - SQLITE_ERROR: no such function: FROM_UNIXTIME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant