[Pkg-xfce-devel] Bug#821288: Bug#821288: xfce4-panel: clock doesn't reflect systemwide timezone change

Michal Hocko mstsxfx at gmail.com
Sun Apr 17 12:48:03 UTC 2016


On Sun, Apr 17, 2016 at 08:32:35AM -0400, Michal Hocko wrote:
> On Sun, Apr 17, 2016 at 02:29:15PM +0200, Yves-Alexis Perez wrote:
> > On dim., 2016-04-17 at 06:52 -0400, Michal Hocko wrote:
> > > Hi,
> > > I have changed my system wide timezone setting by
> > > dpkg-reconfigure tzdata
> > > 
> > > and `date' really displays the time according to the new timezone. Clock
> > > in the pannel still shows the original TZ data though. Is this behavior
> > > intentional?
> > > The time is correct when I update the timezone settings directly in the
> > > Clock properties but I would expect that the clock would use the system
> > > settings.
> > 
> > It does, but it might need some time to actually refresh (maybe at the next
> > refresh, or maybe at the next restart).
> 
> I have changed my setup yesterday so I guess it will be the later which
> is more than unfortunate because I do not restart X session very often
> (it's typically with the new kernel rc). Is this fixable? I have to
> admit I didn't have time to look into the sources yet but I thought that
> the applet would simply use the localtime and that should get updated
> automatically.

I have tried to look into this and here is what should work - but I
didn't get to test it. See the attached patch. Maybe there are more
optimal ways to do this properly but this one looks quite easy.
-- 
Michal Hocko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: always-use-current-timezone.patch
Type: text/x-diff
Size: 1018 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20160417/57e81608/attachment.patch>


More information about the Pkg-xfce-devel mailing list