Fix relative calculation with improper timezone

This commit is contained in:
Jesse Gumm 2016-04-11 18:12:35 -05:00
parent bb934b522f
commit ff6b7139ca

View file

@ -1,9 +1,11 @@
% vim: ts=4 sw=4 et
% Copyright (c) 2013-2015 Jesse Gumm
% Copyright (c) 2013-2016 Jesse Gumm
% See LICENSE for licensing information.
%
-module(qdate).
-compile(export_all).
-export([
start/0,
stop/0
@ -867,7 +869,7 @@ try_parsers(_RawDate,[]) ->
try_parsers(RawDate,[{ParserKey,Parser}|Parsers]) ->
try Parser(RawDate) of
Timestamp when is_integer(Timestamp) ->
{Timestamp, undefined};
{Timestamp, "GMT"};
{{_,_,_},{_,_,_}} = DateTime ->
{DateTime,undefined};
{DateTime={{_,_,_},{_,_,_}},Timezone} ->