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.
Ubuntu 20.04 - Python 2/3 saw no issues before/after the changes.
Windows Server 2019 - Python 2/3 saw ValueError prior to changes. After changes, was able to Export MSSQL Database.
Types of changes
What types of changes does your code introduce? Put an x in all the boxes that apply:
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
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!
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
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?
ValueError
prior to changes. After changes, was able to Export MSSQL Database.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!