From d21bd309d9fae7979550e09ba7b16526cd40977c Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Wed, 15 Jun 2011 19:29:12 +0100 Subject: Made sure that the client has the idea of "now" fixed when called. --- bin/mauveclient | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/mauveclient b/bin/mauveclient index cfcc1c2..5fbf7dc 100755 --- a/bin/mauveclient +++ b/bin/mauveclient @@ -66,6 +66,8 @@ require 'mauve/proto' require 'mauve/mauve_time' require 'pp' +NOW = Mauve::MauveTime.now + def error(msg) STDERR.print "*** Error: #{msg}\n" STDERR.print "*** For help, type: #{$0} -h\n" @@ -73,7 +75,7 @@ def error(msg) end def parse_time_spec(spec = "now") - now = Mauve::MauveTime.now + now = NOW return now if spec == 'now' -- cgit v1.2.1