View Issue Details

IDProjectCategoryView StatusLast Update
0000132AlmaLinux-8-OTHERpublic2021-10-25 09:11
Reporteratapy Assigned Toalukoshko  
Status resolvedResolutionfixed 
Summary0000132: [Cloud/AWS]AMI wrongly assumes RTC as LOCALTIME
DescriptionOfficial AMI assumes syetem real-time-clock as LOCALTIME,
but it is incorrect because EC2 supplies their RTC clock as UTC.

> Update the /etc/sysconfig/clock file with the new time zone.
> Do not change the UTC=true entry to another value.
> This entry is for the hardware clock,
> and does not need to be adjusted
> when you're setting a different time zone on your instance.

It may cause inaccurate time settings, espacially time zone is set OTHER THAN UTC.
Please consider changing default RTC setting, to UTC.
Steps To Reproduce[ec2-user@ip-172-31-44-137 ~]$ timedatectl status
               Local time: Wed 2021-10-13 09:46:11 UTC
           Universal time: Wed 2021-10-13 09:46:11 UTC
                 RTC time: Wed 2021-10-13 09:46:11
                Time zone: UTC (UTC, +0000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: yes <------ INCORRECT FOR AWS

Warning: The system is configured to read the RTC time in the local time zone.
         This mode cannot be fully supported. It will create various problems
         with time zone changes and daylight saving time adjustments. The RTC
         time is never updated, it relies on external facilities to maintain it.
         If at all possible, use RTC in UTC by calling
         'timedatectl set-local-rtc 0'.
Additional InformationTested at ap-northeast-1.
AlmaLinux OS 8.4 x86_64-stage2-c076b20a-2305-4771-823f-944909847a05

RHEL 8, CentOS 8 and Rocky Linux 8 do not have this bug.
This bug exists only on AlmaLinux 8.
Tagsaws, Bug, cloud



2021-10-17 15:05

developer   ~0000353

Hey atapy,

Thanks for making AlmaLinux better. You can get the updated AMIs from the Community AMI wiki page or AWS Marketplace. You'll get the product subscription e-mail when the second one is published on the AWS Marketplace by Amazon.

[1] Community AMI wiki page:

Issue History

Date Modified Username Field Change
2021-10-13 09:55 atapy New Issue
2021-10-17 15:05 elkhan Note Added: 0000353
2021-10-17 15:06 elkhan Tag Attached: aws
2021-10-17 15:07 elkhan Tag Attached: cloud
2021-10-17 15:07 elkhan Tag Attached: Bug
2021-10-25 09:11 alukoshko Assigned To => alukoshko
2021-10-25 09:11 alukoshko Status new => resolved
2021-10-25 09:11 alukoshko Resolution open => fixed