[Rpm-maint] [rpm-software-management/rpm] The time zone set by the %changelog does not take effect. (Issue #2253)

xujing notifications at github.com
Wed Nov 2 01:59:47 UTC 2022


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 <xxx at xxx.com>
- test.
```
2. rpm -qp --changes /root/rpmbuild/RPMS/aarch64/test-1.0-3.aarch64.rpm
```
[root at 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 <xxx at xxx.com>
- test.
```
3. change time zone to `CST` about changelog as follows:
```
%changelog
* Fri May 20 10:48:39 CST 2022 xujing <xxx at xxx.com>
- test.
```
4. repeat steps 1 and 2. The result is as follows:
```
[root at 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 <xxx at 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/2253 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20221101/0c09f686/attachment-0001.html>


More information about the Rpm-maint mailing list