kspearrin/Otp.NET

When using timestamp to verify the code, it isn't converted to UTC

LeandroJF opened this issue · 2 comments

Hi,
Maybe I'm missing something, but is there a reason when using the timestamp parameter it isn't converted to UTC as when we do not use it?

Regards

You can convert it to UTC yourself when passing it in.

Hey, tks for your quick response

I'm already doing it now, but I believe that it should be the default behavior as when we do not use the timestamp parameter the current date is converted to UTC.

I just asking because I don't see a reason to not convert it automatically, also, as I didn't know that before, I spent about one hour trying to find out why everything was OK in my unit tests but when using it on my system it wasn't working.

Regards.