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

Add new snippet to get UTC datetime #68

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

daipresents
Copy link
Contributor

For example, if a user in Japan runs a mabl test locally, the time zone will be JST.
However, mabl cloud execution is in the US environment, so the time zone will be UTC.
Thus, there is a difference between the local and cloud environments.

This snippet is a sample that converts a date/time string in a specified local time zone to UTC.

Since it works only in the mabl cloud environment, the local date and time is converted to UTC in the cloud execution, pseudo-absorbing the environment difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant