alarm/fake-hwclock change 12h to 24h format

This commit is contained in:
moonman 2014-01-20 23:11:29 -07:00
parent 37d4d4887f
commit d0a877b335
2 changed files with 4 additions and 4 deletions

View file

@ -4,8 +4,8 @@
# Reference: http://archplusplus.co.uk/post/31401843803/fake-hwclock-for-arch-linux-arm-on-raspberry-pi # Reference: http://archplusplus.co.uk/post/31401843803/fake-hwclock-for-arch-linux-arm-on-raspberry-pi
pkgname=fake-hwclock pkgname=fake-hwclock
pkgver=0.1 pkgver=0.2
pkgrel=6 pkgrel=1
pkgdesc="Saves time on shutdown and restores it on boot from a file" pkgdesc="Saves time on shutdown and restores it on boot from a file"
arch=('arm') arch=('arm')
license=('GPL') license=('GPL')
@ -13,7 +13,7 @@ install=fake-hwclock.install
source=('fake-hwclock.sh' source=('fake-hwclock.sh'
'fake-hwclock.service') 'fake-hwclock.service')
md5sums=('7b320a8e212db58540cdb83c1da585bd' md5sums=('09cea0ee86071fb86d3cdbc52feabe69'
'8a328ff872a092dcdf86088ae2c20fd3') '8a328ff872a092dcdf86088ae2c20fd3')
package() { package() {

View file

@ -4,7 +4,7 @@ THISFILE=$0
setclock() { setclock() {
echo "Setting clock." echo "Setting clock."
MYTIME=$(date -r $THISFILE '+%Y-%m-%d %r') MYTIME=$(date -r $THISFILE '+%Y-%m-%d %H:%M:%S')
date --set="$MYTIME" &>/dev/null date --set="$MYTIME" &>/dev/null
} }