Commit cef0d21
committed
Fix conversion of datetimes in TransferData
The `deadline` field accepts a datetime but does not stringify it.
On `DeleteData`, the same field exists, with the same semantics, and is
passed to our internal `stringify()` helper. Apply the same here as the
fix so that the two remain consistent.
A new unit test verifies the results.
Note that this calls `str(deadline)`, which *does not* produce an
ISO 8601 date string. This was the behavior in the 3.x versions of the
SDK as well, which is part of why it is being kept rather than fixed at
this time.
Fixing it will require evaluating what the Transfer APIs accept.
Fixes #13711 parent 5df4a27 commit cef0d21
3 files changed
Lines changed: 24 additions & 1 deletion
File tree
- changelog.d
- src/globus_sdk/services/transfer/data
- tests/unit/helpers
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
179 | | - | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
298 | 300 | | |
299 | 301 | | |
300 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
0 commit comments