Date conversion from string to unixepoch in Flask Date conversion from string to unixepoch in Flask flask flask

Date conversion from string to unixepoch in Flask


OK, friend helped me with finding error:

Problem was that I tried to use value entry.date in my template, but but nothing was associated with date in entry.

Solution: "strftime('%s', date) as date, temperature ...", then result of strftime is put into entries.date as it should be.