aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2021-01-31 16:15:52 -0800
committerHauke Mehrtens <hauke@hauke-m.de>2021-02-14 15:15:32 +0100
commit157cd0bd97bcfec8a34d4ebb558f37bee4f0515f (patch)
tree240f276f6ca6e539ac79fb94b100723a1fd147ba /package/utils
parentda283a8f2c7ca944c064e0bc626ee815ae4b5b21 (diff)
downloadupstream-157cd0bd97bcfec8a34d4ebb558f37bee4f0515f.tar.gz
upstream-157cd0bd97bcfec8a34d4ebb558f37bee4f0515f.tar.bz2
upstream-157cd0bd97bcfec8a34d4ebb558f37bee4f0515f.zip
base-files: use hwclock --systz
The date -k patch is non standard and will be removed in the next commit. Tested behavior to be identical with a simple C program: #define _GNU_SOURCE #include <unistd.h> #include <stdio.h> #include <sys/time.h> #include <sys/syscall.h> int main() { struct timezone tt; struct timezone tz; int a = syscall(SYS_gettimeofday, NULL, &tt); int b = gettimeofday(NULL, &tz); printf("%d - %d, %d\n", a, tt.tz_minuteswest, tt.tz_dsttime); printf("%d - %d, %d\n", b, tz.tz_minuteswest, tz.tz_dsttime); } Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'package/utils')
0 files changed, 0 insertions, 0 deletions