Skip to content
Advertisement

Converting Unix timestamp to timestamp including the local time of a certain timezone

I have following code:

JavaScript

First line runs but when I try to set the new timestamp as a local time for that timezone I get an error as – **to_datetime() got an unexpected keyword argument ‘tz’**

Thanks

Advertisement

Answer

JavaScript

or alternatively

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement