Your message dated Tue, 16 Aug 2022 11:35:10 +0200
with message-id <YvtkzpItNczD/[email protected]>
and subject line Re: Bug#705566: date does not read the timezone from the 
environment variable TZ,  and there is no other way to view from the CLI times 
in other timezones.
has caused the Debian Bug report #705566,
regarding date does not read the timezone from the environment variable TZ,  
and there is no other way to view from the CLI times in other timezones.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
705566: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705566
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: date
Severity: important
Tags: l10n

I need to view on the CLI the time in various timezones.



I have correctly configured the time and timezone to the best of my knowledge. 
I use this command:
dpkg-reconfigure tzdata && ntpdate pool.ntp.org && hwclock --systohc --utc



I get this output:
Current default time zone: 'America/Chicago'
Local time is now:      Tue Apr 16 14:45:29 CDT 2013.
Universal Time is now:  Tue Apr 16 19:45:29 UTC 2013.

16 Apr 19:45:38 ntpdate[12036]: adjust time server 199.102.46.73 offset 
-0.036668 sec




I have searched for the "right" way to complete my task, and found a link here:
http://www.linuxquestions.org/questions/programming-9/display-different-timezones-in-command-line-927660/

That link recommends that I complete my task using a command like this one:
TZ=UTC date && TZ=CDT date && TZ=IST date



However, I get this output, which is obviously not what it should be:
Tue Apr 16 19:45:39 UTC 2013
Tue Apr 16 19:45:39 CDT 2013
Tue Apr 16 19:45:39 IST 2013


-- System Information:
Debian Release: 6.0.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

--- End Message ---
--- Begin Message ---
Re: Michael Stone
> It would also be non-compliant with the standard. I'll pile on with what
> everyone else said, and repeat that the only practical solution is to not do
> what you're doing because the functionality is fundamentally unreliable. The
> ideal solution would be to drop support for three letter timezone codes
> entirely, but that's untenable from a compatibility standpoint.

The original request had been dealt with in 2013, and this variant
does not seem viable, so let's close this.

Christoph

--- End Message ---

Reply via email to