Fixed bug. The initial date, when not specified by the user, had wrong format.

time-shift
Stéphane Adjemian (Charybdis) 2011-08-13 00:30:54 +02:00 committed by Stéphane Adjemian (Scylla)
parent ff98f65cf6
commit 2c8b71ae05
1 changed files with 2 additions and 1 deletions

View File

@ -144,10 +144,11 @@ switch nargin
ts.last = ts.time(end,:);
end
else% If b is empty.
ts.freq = 1;
ts.init = 1;
ts.last = ts.nobs;
ts.freq = 1;
ts = set_time(ts);
ts.init = ts.time(1,:);
ts.last = ts.time(end,:);
end
% Get the names of the variables.