Hand over actual date in the main application; error introduced by last commit; fixes issue #1