various fixes
[distro-setup] / myi3status
index 749b0669eb30c32995b5776dfd18172ae0088062..65285329a36f51fc717f484e248e7a6a40c2d599 100644 (file)
@@ -76,7 +76,7 @@ main() {
   #weekly work+study in the last 16 weeks, not counting today.
   #weekly work+study in the last 52 weeks, not counting today.
 
-  unixtime=$(date +%s)
+  unixtime=$EPOCHSECONDS
   midnight=$(date +%s -d 'tomorrow 00:00')
   tmp=($(echo "scale=1; today_left=($midnight-$unixtime) / 60 / 60;
 today_left;