Skip to content

Conversation

@Kratika-P
Copy link
Contributor

Issues Resolved by this Pull Request

Please be sure to associate your pull request with one or more open issues. Use the word Fixes as well as a hashtag (#) prior to the issue number in order to automatically resolve associated issues (e.g., Fixes #100).

Fixes #

Description of the Solution

Please describe the solution provided and how it resolves the associated issues.

Suggested Reviewers

If you wish to suggest specific reviewers for this solution, please include them in this section. Be sure to include the @ before the GitHub username.

fi


oim_timezone=$(timedatectl | grep "Time zone" | awk '{print $3}')
Copy link
Collaborator

@abhishek-sa1 abhishek-sa1 Nov 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grep time zone is not safe as it can be changed syntax later. can we have any other way to get timezone of oim in any file or any proper command. case sensitive to be handled?

@Omnia-svc
Copy link
Collaborator

Can one of the admins verify this patch?


oim_timezone=$(timedatectl | grep "Time zone" | awk '{print $3}')
if [[ -z "$oim_timezone" ]]; then
echo -e "${RED}Timezone is not set!${NC}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@priti-parate should we fail here or provide warning and proceed with empty timezone?

@priti-parate
Copy link
Collaborator

closing as this this taken further with different PR

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants