Fixed the error with the curr-date variable in alarm file writer.