rubrikinc / rubrik-sdk-for-python

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

Sql tz fix #279

Open jakeheut opened 3 years ago

jakeheut commented 3 years ago

Description

This pull request addresses issues regarding _validate_sql_recovery_point and _date_time_conversion:

Related Issue

SQL export seconds issue: https://github.com/rubrikinc/rubrik-sdk-for-python/issues/274 Time zone Issue: https://github.com/rubrikinc/rubrik-sdk-for-python/issues/278

Motivation and Context

This change fixes sql_db_export during these 2 scenarios:

  1. The function is ran from a client on a different time zone then the Rubrik Cluster.
  2. The export targeted has a non-zero second for time.

How Has This Been Tested?

This has been tested on a Rubrik Cluster running 5.3.2-p3-19174.

The following functions have been tested due to being modified directly or having a sub-function modified:

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!