GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

New issue
Copy link
New issue
Copy link
Closed
Closed
Time passed to startTimeOfDay must be UTC#113
Copy link
Assignees
tswast
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

@almegeddon
almegeddon
opened on Mar 16, 2016
Issue body actions

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

  1. tswast commented on Mar 16, 2016

    @tswast
    tswast
    on Mar 16, 2016
    Contributor
    More actions

    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?

  2. tswast
    self-assigned this
    on Mar 16, 2016
  3. almegeddon commented on Mar 16, 2016

    @almegeddon
    almegeddon
    on Mar 16, 2016
    Author
    More actions

    Yes, you are correct. I mistakenly left out the full package in my original issue.

  4. lesv
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Jul 28, 2016
  5. tswast commented on Aug 18, 2016

    @tswast
    tswast
    on Aug 18, 2016
    Contributor
    More actions

    Thanks again for the report. I fix this with #311

    (Sorry it took 6 months, yikes!)

  6. tswast
    closed this as completedin #311on Aug 22, 2016
  7. yoshi-automation
    added
    🚨This issue needs some love.
    triage meI really want to be triaged.
    on Apr 6, 2020
  8. minherz
    added 3 commits that reference this issue on Nov 9, 2022

    chore: release 0.120.0 (#176)

    e8ce472

    chore: release 0.120.0 (#176)

    4c5925f

    chore: release 0.120.0 (#176)

    48358e4
  9. Sita04
    added 2 commits that reference this issue on Nov 11, 2022

    chore(deps): update dependency com.google.cloud.samples:shared-config…

    ef6ac4f

    chore(deps): update dependency com.google.cloud.samples:shared-config…

    35e3589
  10. Shabirmean
    added 2 commits that reference this issue on Nov 15, 2022

    chore(deps): update dependency com.google.cloud:libraries-bom to v6 (#…

    5945124

    chore(deps): update dependency com.google.cloud:libraries-bom to v6 (#…

    a6dfa74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @tswast
    tswast

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.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.