# "date" command halts the system

**URL:** <https://forums.digi.com/t/date-command-halts-the-system/6184>\
**Category:** Linux\
**Created:** [March 3, 2009, 10:03am UTC](https://forums.digi.com/t/date-command-halts-the-system/6184 "2009-03-03T10:03:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![estratos](https://avatars.discourse-cdn.com/v4/letter/e/22d042/32.png) [@estratos](https://forums.digi.com/u/estratos)\
**Post date:** [March 3, 2009, 10:03am UTC](https://forums.digi.com/t/date-command-halts-the-system/6184/1 "2009-03-03T10:03:39Z")

</div>

I don’t know if anyone else experienced the same problem but my system halts (reboots) after updating the System time using the “date -s” command.

In order to work around this issue, I’m creating custom functions that use stime instead of running “date” from bash.

Daniel.

---

<div class="post-metadata">

**Author:** ![estratos](https://avatars.discourse-cdn.com/v4/letter/e/22d042/32.png) [@estratos](https://forums.digi.com/u/estratos)\
**Post date:** [March 3, 2009, 11:15am UTC](https://forums.digi.com/t/date-command-halts-the-system/6184/2 "2009-03-03T11:15:13Z")

</div>

Correction: stime() hangs the system too.

---

<div class="post-metadata">

**Author:** ![tmattison](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tmattison](https://forums.digi.com/u/tmattison)\
**Post date:** [July 2, 2009, 8:29pm UTC](https://forums.digi.com/t/date-command-halts-the-system/6184/3 "2009-07-02T20:29:02Z")

</div>

date -s works on my device. I did the following:

~ # date  
Thu Jul 2 20:35:16 UTC 2009  
~ # date -s 20:39:00  
Thu Jul 2 20:39:00 UTC 2009  
~ # date  
Thu Jul 2 20:39:01 UTC 2009  
~ #
