Skip to content

Commit b35b012

Browse files
committed
fix: Use UTC time in schedule shutdown
1 parent eec7386 commit b35b012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

login1/dbus.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ func (c *Conn) RebootWithFlags(flags uint64) {
355355

356356
// ScheduleShutdown asks logind to schedule a shutdown.
357357
func (c *Conn) ScheduleShutdown(typ ScheduleShutdownType, when time.Time) {
358-
c.object.Call(dbusManagerInterface+".ScheduleShutdown", 0, typ.String(), when.UnixMicro())
358+
c.object.Call(dbusManagerInterface+".ScheduleShutdown", 0, typ.String(), when.UTC().UnixMicro())
359359
}
360360

361361
func (c *Conn) SetWallMessage(message string, enable bool) {

0 commit comments

Comments
 (0)