Skip to content
Snippets Groups Projects
Commit 2d9328c6 authored by jacques.grelet_ird.fr's avatar jacques.grelet_ird.fr
Browse files

bug: DATE_UPDATE was initialized with a bad format, corrected in version 1.23

parent 4cfb80a7
No related branches found
No related tags found
No related merge requests found
......@@ -659,7 +659,7 @@ uiwait(hHeaderFig);
if isnan(tsg.(var)(ii))
value = '';
elseif strcmpi(cle, padding('DATE', tsg.dim.COEF_CONV_SIZE))
value = datestr(julianToDatenum(tsg.(var)(ii)), 'YYYYmmdd');
value = datestr(julianToDatenum(tsg.(var)(ii)), 'yyyymmdd');
else
value = num2str(tsg.(var)(ii));
end
......
......@@ -80,7 +80,7 @@ REFERENCE_DATE_TIME = '19500101000000';
% get actual date with ISO8601
% ----------------------------
date = datestr(now, 'yyyyddmmHHMMSS');
date = datestr(now, 'yyyymmddHHMMSS');
% -------------------------------------------------------------------------
%% Levitus fields for climatology
......
......@@ -69,13 +69,13 @@ tsg.DATE_END = datestr(max(tsg.DAYD), tsg.preference.date_format_attribute)
% if date is in standard format, change, if not, user need to update
% inside headerform
% ------------------------------------------------------------------
if size(tsg.DATE, 2) == 14
if size(tsg.DATE_CREATION, 2) == 14
tsg.DATE_CREATION = datestr(datenum(tsg.DATE_CREATION, ...
'yyyyddmmHHMMSS'), tsg.preference.date_format_attribute);
'yyyymmddHHMMSS'), tsg.preference.date_format_attribute);
end
if size(tsg.DATE, 2) == 14
if size(tsg.DATE_UPDATE, 2) == 14
tsg.DATE_UPDATE = datestr(datenum(tsg.DATE_UPDATE, ...
'yyyyddmmHHMMSS'), tsg.preference.date_format_attribute);
'yyyymmddHHMMSS'), tsg.preference.date_format_attribute);
end
% update tsg.xxx_DATE_xxx with new or ISO8601 format if necessary
......
......@@ -37,8 +37,8 @@ global NETCDF_FORMAT_VERSION
% version number, may be used to initialize some files when it change
% 0.90x -> 1.0RCx
% -------------------------------------------------------------------
VERSION = 1.22; % -> 1.3
CHAR_VERSION = '1.22';
VERSION = 1.23; % -> 1.3
CHAR_VERSION = '1.23';
% netcdf file version, see DATA FORMAT TSG document:
% CORTSG_format_gosud_1.5.doc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment