Fix relative calculation with improper timezone
This commit is contained in:
parent
bb934b522f
commit
ff6b7139ca
1 changed files with 4 additions and 2 deletions
|
@ -1,9 +1,11 @@
|
||||||
% vim: ts=4 sw=4 et
|
% vim: ts=4 sw=4 et
|
||||||
% Copyright (c) 2013-2015 Jesse Gumm
|
% Copyright (c) 2013-2016 Jesse Gumm
|
||||||
% See LICENSE for licensing information.
|
% See LICENSE for licensing information.
|
||||||
%
|
%
|
||||||
-module(qdate).
|
-module(qdate).
|
||||||
|
|
||||||
|
-compile(export_all).
|
||||||
|
|
||||||
-export([
|
-export([
|
||||||
start/0,
|
start/0,
|
||||||
stop/0
|
stop/0
|
||||||
|
@ -867,7 +869,7 @@ try_parsers(_RawDate,[]) ->
|
||||||
try_parsers(RawDate,[{ParserKey,Parser}|Parsers]) ->
|
try_parsers(RawDate,[{ParserKey,Parser}|Parsers]) ->
|
||||||
try Parser(RawDate) of
|
try Parser(RawDate) of
|
||||||
Timestamp when is_integer(Timestamp) ->
|
Timestamp when is_integer(Timestamp) ->
|
||||||
{Timestamp, undefined};
|
{Timestamp, "GMT"};
|
||||||
{{_,_,_},{_,_,_}} = DateTime ->
|
{{_,_,_},{_,_,_}} = DateTime ->
|
||||||
{DateTime,undefined};
|
{DateTime,undefined};
|
||||||
{DateTime={{_,_,_},{_,_,_}},Timezone} ->
|
{DateTime={{_,_,_},{_,_,_}},Timezone} ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue