QuantConnect / pythonnet

Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET developers.
http://pythonnet.github.io
MIT License
28 stars 26 forks source link

Do not include timezone if DateTimeKind is Unspecified #15

Closed AlexCatarino closed 6 years ago

AlexCatarino commented 6 years ago

DECREF'ing datetime timezone argument when DateTimeKind is Unspecified was causing Fatal Python error: deallocating None because the object was set to Runtime.PyNone.

Fixed the input to datetime constructor as we were passing milliseconds, where it should be microseconds.