[systemd-devel] timezone aware timers

Lennart Poettering lennart at poettering.net
Tue Feb 20 17:42:17 UTC 2018


On Di, 20.02.18 17:29, Iain Lane (iain at orangesquash.org.uk) wrote:

> On Tue, Feb 20, 2018 at 06:04:47PM +0100, Lennart Poettering wrote:
> > On Di, 20.02.18 11:14, Iain Lane (iain at orangesquash.org.uk) wrote:
> > > I'm not sure, though, what the best way to specify this in a timer unit
> > > would be. Perhaps either a new timezone specification "local", or a
> > > boolean flag UpdateWithTimezoneChange. "local" would act like you
> > > specified the current timezone, but we would go away and recalculate
> > > the time on a timezone change.
> > 
> > If you don't specify a timezone in timer expression you actually
> > reference the local time. The only issue is that we don't recognize
> > timezone changes...
> 
> That's right. This is the intended behaviour though, so I'm proposing a
> way to opt into something different. My feeling is that "local" is a
> confusing name, but we could hash that out at a later stage.

I think we should fix systemd so that specifying no timezone means
"follow the local timezone". I wouldn't even call that an API
breakage, but just a fix.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list