← Back to team overview

touch-packages team mailing list archive

[Bug 1376971] Re: /usr/bin/last is using UTC rather than local time for login

 

I ran "cat /dev/null > /var/log/wtmp", rebooted and then ran utmpdump
/var/log/wtmp.  Results are attached, with XXXX instead of my login
name.  Results look odd, because the time stamps are always reported to
be EDT, but seem to flip back and forth between EDT and UTC.

** Attachment added: "wtmp.out"
   https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1376971/+attachment/4224006/+files/wtmp.out

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to sysvinit in Ubuntu.
https://bugs.launchpad.net/bugs/1376971

Title:
  /usr/bin/last is using UTC rather than local time for login

Status in “sysvinit” package in Ubuntu:
  New

Bug description:
  I upgraded from 14.04 to 14.10.  When I run /usr/bin/last, which
  relies on /var/log/wtmp, I get the following output (note:  I replaced
  my login name with XXXX):

  XXXX     pts/8     :0               Thu Oct  2 20:40   still logged in   
  XXXX     pts/2     :0               Thu Oct  2 20:36   still logged in   
  XXXX     pts/2     :0               Thu Oct  2 18:55 - 20:30  (01:34)    
  XXXX     :0           :0               Thu Oct  2 18:54   still logged in   
  reboot   system boot  3.16.0-20-generi Thu Oct  2 22:54 - 20:41  (-2:-12)   
  XXXX     pts/9     :0               Thu Oct  2 18:38 - 18:52  (00:14)    
  XXXX     pts/0     :0               Thu Oct  2 18:35 - 18:53  (00:17)    

  Note that for the XXXX login, the session's start and stop time are
  both shown in local time.  However, for the reboot line, the start
  time is shown in UTC (i.e. Greeenwich) time and the current time is
  shown in local time, which gives rise to the negative elapsed time.

  I tried emptying the /var/log/wtmp file and rebooting.  No luck.

  Possibly wtmp is being written to before the time zone can be
  established.  My time zone is EDT (US/Eastern, same time zone as New
  York).

  When I run the linux "date" command, the time zone is shown correctly.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: sysvinit-utils 2.88dsf-41ubuntu18
  ProcVersionSignature: Ubuntu 3.16.0-20.27-generic 3.16.3
  Uname: Linux 3.16.0-20-generic x86_64
  NonfreeKernelModules: wl
  ApportVersion: 2.14.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Thu Oct  2 20:38:10 2014
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2014-04-20 (165 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
  SourcePackage: sysvinit
  UpgradeStatus: Upgraded to utopic on 2014-10-02 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1376971/+subscriptions


References