# HG changeset patch # User Goffi # Date 1543657297 -3600 # Node ID ab37d1c7c38c687c9c1effafb49c685cee79aa44 # Parent 3ba53b1cd1e6b86714c859212c9d500c7cbd68e3 jp (base): new date_decoder to specify dates in arguments diff -r 3ba53b1cd1e6 -r ab37d1c7c38c sat_frontends/jp/base.py --- a/sat_frontends/jp/base.py Sat Dec 01 10:40:19 2018 +0100 +++ b/sat_frontends/jp/base.py Sat Dec 01 10:41:37 2018 +0100 @@ -35,6 +35,7 @@ from sat.tools import config from sat.tools.common import dynamic_import from sat.tools.common import uri +from sat.tools.common import date_utils from sat.core import exceptions import sat_frontends.jp from sat_frontends.jp.constants import Const as C @@ -137,6 +138,10 @@ return arg.decode(locale.getpreferredencoding()) +def date_decoder(arg): + return date_utils.date_parse_ext(arg, default_tz=date_utils.TZ_LOCAL) + + class Jp(object): """ This class can be use to establish a connection with the