Modifying the code to respect the timezone when appending the bucket details to the file name