Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify timezone for Lambda recurring schedule #8027

Closed
hisham opened this issue Aug 24, 2021 · 2 comments · Fixed by #8053
Closed

Clarify timezone for Lambda recurring schedule #8027

hisham opened this issue Aug 24, 2021 · 2 comments · Fixed by #8053
Assignees
Labels
bug Something isn't working functions Issues tied to the functions category
Projects

Comments

@hisham
Copy link
Contributor

hisham commented Aug 24, 2021

Note: If your question is regarding the AWS Amplify Console service, please log it in the
AWS Amplify Console repository

Which Category is your question related to?
function

Amplify CLI Version
5.3.0

What AWS Services are you utilizing?
Lambda

Provide additional details e.g. code snippets

When I setup a lambda on recurring schedule, the default time amplify cli suggest is current time on my local machine. So I assume then I am setting the lambda's schedule based on my timezone and amplify cli will convert to UTC. For example I set my lambda to run 7:11am MST each day. But then checking the deployed lambda I see the time is not converted to UTC: cron(11 7 * * ? *).

Amplify CLI should be super clear what timezone I'm inputting the time in. It seems to imply it's my timezone because it picked the current time, but turns out it's current time in UTC which is not my current local time.

@hisham hisham added the question General question label Aug 24, 2021
@attilah
Copy link
Contributor

attilah commented Aug 24, 2021

@hisham thanks for the heads up I mark it as a bug because it is an easy DX change in the prompts, the time given is in UTC as you also figured since that's how Lambda works: https://docs.aws.amazon.com/lambda/latest/dg/services-cloudwatchevents-expressions.html

@attilah attilah added bug Something isn't working functions Issues tied to the functions category and removed question General question labels Aug 24, 2021
@attilah attilah added this to To do in Bug bash via automation Aug 24, 2021
@danielleadams danielleadams moved this from To do to In progress in Bug bash Aug 27, 2021
@danielleadams danielleadams self-assigned this Aug 27, 2021
@danielleadams danielleadams moved this from In progress to Needs review in Bug bash Aug 27, 2021
@danielleadams danielleadams moved this from Needs review to Approved and ready to merge in Bug bash Sep 3, 2021
Bug bash automation moved this from Approved and ready to merge to Done Sep 9, 2021
@github-actions
Copy link

github-actions bot commented Nov 9, 2021

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working functions Issues tied to the functions category
Projects
Bug bash
  
Done
Development

Successfully merging a pull request may close this issue.

3 participants