diff --git a/EcCommand.m b/EcCommand.m index 004db2f..76b3b34 100644 --- a/EcCommand.m +++ b/EcCommand.m @@ -2124,7 +2124,14 @@ static NSString* cmdWord(NSArray* a, unsigned int pos) NSAutoreleasePool *arp; arp = [NSAutoreleasePool new]; - now = [when timeIntervalSinceReferenceDate]; + if (nil == when) + { + now = [NSDate timeIntervalSinceReferenceDate]; + } + else + { + now = [when timeIntervalSinceReferenceDate]; + } logs = [[self ecUserDirectory] stringByAppendingPathComponent: @"Logs"];