Dear devs, The timezone Brazil/West is providing a wrong time. The configuration is the same from last year, with daylight savings time starting a few days ago which add 1 hour to the time. This year the government decided to stop using daylight savings time, so the system clock should no longer add 1 hour as it used to do. So what needs to be done is to update the Brazil/West timezone configuration so that it no longer adds 1 hour to the clock this time of the year. Example: current correct time is 11:33 at the moment I'm writing this, while the clock shows 12:33 due to the timezone wrong configuration. Thank you!
Does running this fix it? emerge --config timezone-data Your /etc/localtime file is only updated after doing that command.
It appears Brazil/West currently returns UTC-0400 with sys-libs/timezone-data-2019c. % date -u Tue 05 Nov 2019 06:31:43 PM UTC % TZ=Brazil/West date Tue 05 Nov 2019 02:31:47 PM -04 Is that incorrect?
% TZ=Brazil/West date Tue 05 Nov 2019 02:31:47 PM -04 This is correct. Indeed, I'm getting this: gfaccin@arara ~ $ TZ=Brazil/West date Tue 05 Nov 2019 02:57:23 PM -04 gfaccin@arara ~ $ date Tue 05 Nov 2019 03:59:03 PM -03 gfaccin@arara ~ $ cat /etc/timezone Brazil/West gfaccin@arara ~ $ su Password: arara /home/gfaccin # emerge --config timezone-data Configuring pkg... * Updating /etc/localtime with /usr/share/zoneinfo/Brazil/West arara /home/gfaccin # date Tue 05 Nov 2019 04:00:06 PM -03 Strange, is it not? Perhaps has something to do with staying in sync with the latest timezone configurations?
Is the TZ environment variable set to something other than "Brazil/West" in your shell startup scripts? You could test that by running the date command with an empty environment via "env -i". That will force it to use /etc/localtime. env -i date
Please post 'emerge --info sys-libs/timezone-data'. That should show the version installed.
Mike, Now it got interesting: piranha /home/gfaccin # date Tue 05 Nov 2019 05:49:00 PM -03 piranha /home/gfaccin # env -i date Tue Nov 5 16:49:21 -04 2019 Sergei, here it's: 4.52-gentoo-x86_64-Intel-R-_Core-TM-_i5-8400_CPU_@_2.80GHz-with-gentoo-2.6 KiB Mem: 16367648 total, 14487292 free KiB Swap: 4095996 total, 4095996 free Timestamp of repository gentoo: Mon, 04 Nov 2019 20:00:01 +0000 Head commit of repository gentoo: 2a4e51b6503983e26e91c51df2bd0d0284ccc74b sh bash 4.4_p23-r1 ld GNU ld (Gentoo 2.30 p5) 2.30.0 app-shells/bash: 4.4_p23-r1::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.28.2-r1::gentoo dev-lang/python: 2.7.15::gentoo, 3.5.5::gentoo, 3.6.5::gentoo dev-util/cmake: 3.14.3::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.41.2::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.15.1-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.30-r4::gentoo, 2.31.1-r6::gentoo, 2.32-r1::gentoo sys-devel/gcc: 8.3.0-r1::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.29-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 science location: /var/lib/layman/science masters: gentoo priority: 50 ycUygB1 location: /var/lib/layman/ycUygB1 masters: gentoo priority: 50 Installed sets: @steam ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /e CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_ FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multi userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="rsync://gentoo.c3sl.ufpr.br/gentoo/ http://gentoo.c3sl.ufpr.br/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en pt-BR" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeo PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam fle pdf png policykit ppds qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidge1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_INS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 te tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="pt-BR" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb2j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgreDDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos ac Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLA ================================================================= Package Settings ================================================================= sys-libs/timezone-data-2018i::gentoo was built with the following: USE="nls -leaps_timezone" ABI_X86="(64)"
Ok, so 2 things: 1. You have an old version of sys-libs/timezone-data installed. Please upgrade to the latest stable version. 2. Something is setting the TZ variable to a different value on your system. Please check your shell startup files and/or your display manager config if you are using one. Anyway, this appears to be a local config issue, and not a bug.
Likely places to check: /etc/profile /etc/profile.env /etc/bash/bashrc /etc/bash/bashrc.d ~/.profile ~/.bash_profile ~/.bashrc
Mike, You are correct. I had done an "emerge world -uv" prior to reporting and thus though everything was up to date, but sys-libs/timezone-data did not update along with the world packages. It required the -D flag to be included. Thank you all for the help! Cheers!
(In reply to Giovani M. Faccin from comment #9) > Mike, > > You are correct. > > I had done an "emerge world -uv" prior to reporting and thus though > everything was up to date, but sys-libs/timezone-data did not update along > with the world packages. It required the -D flag to be included. > > Thank you all for the help! > > Cheers! If you want to update your system completely, you should always do 'emerge -uvDN @world'. This will ensure nothing is missed.