Make evaltrig return a DATETIME if there's an AT clause.

This commit is contained in:
David F. Skoll
2008-09-20 00:03:38 -04:00
parent b59d4ed4a4
commit 50a15cf089
5 changed files with 21 additions and 13 deletions
+1 -1
View File
@@ -734,7 +734,7 @@ int DoIfTrig(ParsePtr p)
if (NumIfs >= IF_NEST) return E_NESTED_IF;
if (ShouldIgnoreLine()) syndrome = IF_TRUE | BEFORE_ELSE;
else {
if ( (r=ParseRem(p, &trig, &tim)) ) return r;
if ( (r=ParseRem(p, &trig, &tim, 1)) ) return r;
if (trig.typ != NO_TYPE) return E_PARSE_ERR;
jul = ComputeTrigger(trig.scanfrom, &trig, &r, 1);
if (r) syndrome = IF_TRUE | BEFORE_ELSE;