GeezerVison is showing github.com — Time passed to startTimeOfDay must be UTC · Issue #113 · GoogleCloudPlatform/java-docs-samples
Time passed to startTimeOfDay must be UTC #113
Labels
🚨This issue needs some love.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. Description
Sample code from AwsRequester.java inaccurately prescribes Pacific Date/Time values here:
/**
* Specify times below using US Pacific Time Zone.
*/
private static final String START_DATE = "YYYY-MM-DD";
private static final String START_TIME = "HH:MM:SS";
This bit us when setting up a transfer job recently. Browsing the Schedule source you can see UTC should be passed:
/**
* The time in UTC at which the transfer will be scheduled to start in a day. Transfers may start
* later than this time. If not specified, transfers are scheduled to start at midnight UTC.
* @param startTimeOfDay startTimeOfDay or {@code null} for none
*/
public Schedule setStartTimeOfDay(TimeOfDay startTimeOfDay)
Activity
tswast commented on Mar 16, 2016
Thank you for your feedback. I'll look into this.
You are referring to the Storage sample at java-docs-samples/storage/storage-transfer/src/main/java/com/google/cloud/storage/storagetransfer/samples/AwsRequester.java correct?
almegeddon commented on Mar 16, 2016
Yes, you are correct. I mistakenly left out the full package in my original issue.
tswast commented on Aug 18, 2016
Thanks again for the report. I fix this with #311
(Sorry it took 6 months, yikes!)
Metadata
Metadata
🚨This issue needs some love.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. Development
No branches or pull requestsIssue actions