in reply to Converting C# to Perl

A quick look at DateTime.UtcNow Doesn't show (at least on Windows) a day of the week as part of the format. Are you sure that your 2 date strings are exactly the same? Perhaps printing out the string to be hash'ed in both cases would at least rule differences out.