Skip to content

Fixed now_helper for sqlite (time is missing) #544

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

Merged
merged 1 commit into from
Aug 6, 2020

Conversation

jlesage
Copy link
Contributor

@jlesage jlesage commented Aug 6, 2020

The sqlite date('now') function returns only the current time.

# echo "SELECT date('now')"|sqlite3
2020-08-06

To be comparable to the NOW() function of mysql, the date and time should be returned. The datetime('now','localtime') function of sqlite does this:

# echo "SELECT datetime('now','localtime')"|sqlite3
2020-08-06 16:44:59

Which is the same thing as mysql:

# echo "SELECT NOW()"| mysql
NOW()
2020-08-06 16:44:59

@jc21
Copy link
Member

jc21 commented Aug 6, 2020

Docker Image for build 1 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-544

@jc21 jc21 merged commit d686565 into NginxProxyManager:develop Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants