Summary: | <sys-apps/coreutils-8.27: date: conversion from one timezone to another TZ no longer works | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ian Zimmerman <nobrowser> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | tsmksubc |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.debian.org/851934 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Ian Zimmerman
2017-10-31 06:04:00 UTC
None of the _p1.1 patches appear to touch anything date related, so the problem is not there. Looking for a workaround, I see that this functions correctly: matica!21 coreutils-8.26$ date -d '2017-10-31 15:45 +0300' +'%H%M %m/%d/%Y' 0545 10/31/2017 This also works: matica!23 coreutils-8.26$ env TZ=Europe/Prague date -d '2017-10-31 15:45' +'%s' 1509461100 matica!27 coreutils-8.26$ date -d '@1509461100' +'%H%M %m/%d/%Y' 0745 10/31/2017 Can you reproduce with sys-apps/coreutils[vanilla]? And please make sure that you are using the same sys-libs/timezone-data version like you are using on your Debian system. This is https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851934 Upstream patch: http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=b14be5085cd1aefd473a000456b21270e6070711 Fixed in >=sys-apps/coreutils-8.27. |