1. rpmbuild -bb test.spec
```
Name: test
Epoch: 1
Version: 1.0
Release: 3
Group: Testing
License: GPL
Summary: Simple rpm demonstration.
Source0: hello-1.0.tar.gz

%description
Simple rpm demonstration.

%prep

%build

%install
touch  %{buildroot}/test-1

%files
/test-1

%changelog
* Fri May 20 10:48:39 UTC 2022 xujing <x...@xxx.com>
- test.
```
2. rpm -qp --changes /root/rpmbuild/RPMS/aarch64/test-1.0-3.aarch64.rpm
```
[root@localhost SPECS]# rpm -qp --changes 
/root/rpmbuild/RPMS/aarch64/test-1.0-3.aarch64.rpm
* Fri 20 May 2022 06:48:39 PM CST xujing <x...@xxx.com>
- test.
```
3. change time zone to `CST` about changelog as follows:
```
%changelog
* Fri May 20 10:48:39 CST 2022 xujing <x...@xxx.com>
- test.
```
4. repeat steps 1 and 2. The result is as follows:
```
[root@localhost SPECS]# rpm -qp --changes 
/root/rpmbuild/RPMS/aarch64/test-1.0-3.aarch64.rpm
* Fri 20 May 2022 06:48:39 PM CST xujing <x...@xxx.com>
- test.
```

As a result, the time zone set by the %changelog does not take effect.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2253
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/2...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to