rubrikinc / rubrik-sdk-for-python

Rubrik SDK for Python
https://build.rubrik.com/sdks/python/
MIT License
29 stars 38 forks source link

[Windows Python 2/3] MSSQL Recovery Point Validation TypeError #269

Closed whocking closed 3 years ago

whocking commented 3 years ago

Description

On Windows OS with Python 2/3, strftime %s is throwing ValueError when creating MSSQL recovery_timestamp. Change method to manually calculate seconds since epoch.

Related Issue

https://github.com/rubrikinc/rubrik-sdk-for-python/issues/268

Motivation and Context

Bugfix

How Has This Been Tested?

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

Checklist:

Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!