Comment 11 for bug 1020285

Revision history for this message
Nathan Stratton Treadway (nathanst) wrote :

> For the record, those looking for a runtime workaround might prefer:
>
> date -u -s "$(date -u -R)"
>
> The extra switches are to avoid locales and ambiguous timezones getting in your way, and the quoting is, well, for proper quoting. :P

For what it's worth, an even simpler command to do this is:
  date -s now

(as mentioned at the top of
http://serverfault.com/questions/403732/anyone-else-experiencing-high-rates-of-linux-server-crashes-during-a-leap-second
)

Nathan