Fixed file creation using time instead of date