Skip to content

Commit eac13a3

Browse files
author
Mark Cafaro
committed
Fixes issue #47 where an error was thrown with a London timezone
1 parent 7042249 commit eac13a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/matlab/+symphonyui/+core/CoreObject.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ function tryCore(obj, call) %#ok<INUSL>
143143
tz = char(t);
144144
if tz(1) == '+'
145145
tz(1) = [];
146+
elseif strcmp(tz, 'Z')
147+
tz = '00:00';
146148
end
147149
offset = System.TimeSpan.Parse(tz);
148150
dto = System.DateTimeOffset(t.Year, t.Month, t.Day, t.Hour, t.Minute, floor(t.Second), round(1000*rem(t.Second, 1)), offset);

0 commit comments

Comments
 (0)