Daemon: bug fix for datetime