# HG changeset patch # User Christophe Lincoln # Date 1307979285 -7200 # Node ID aa620b69c929ac8920b8860bfcb62344acda69d2 # Parent 09b765c4e000589535afe6b90f234b92b4ab0576 web: display correct time zone diff -r 09b765c4e000 -r aa620b69c929 README --- a/README Sun Jun 12 23:23:57 2011 +0200 +++ b/README Mon Jun 13 17:34:45 2011 +0200 @@ -149,7 +149,7 @@ vdisk and format it to ext3: # dd if=/dev/zero of=/home/ssfs.disk bs=1G count=2 -# mkfs.ext3 -T ext3 -L "Ssfs" -F /home/ssfs.ext3 +# mkfs.ext3 -T ext3 -L "Ssfs" -F /home/ssfs.disk Now you have a virtual disk you can mount it, the path must match SSFS_CHROOT found in ssfs-server.conf, default mount point is /ssfs to clearly separate diff -r 09b765c4e000 -r aa620b69c929 web/ssfs.cgi --- a/web/ssfs.cgi Sun Jun 12 23:23:57 2011 +0200 +++ b/web/ssfs.cgi Mon Jun 13 17:34:45 2011 +0200 @@ -12,9 +12,10 @@ vused=$(du -sh $root | awk '{print $1}') users=$(ls $root/home | wc -l) pct=$(df $root | fgrep $root | awk '{print $5}') -tz=$(cat /etc/TZ) date=$(date "+%Y-%m-%d %H:%M") +export TZ=$(cat /etc/TZ) + # XHTML footer function. xhtml_footer() { cat << EOT @@ -66,7 +67,7 @@

Ssfs server $(hostname)

 Server time   : $date
-Time zone     : $tz
+Time zone     : $TZ
 

Virtual disk stats