Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateTime inputs are not handled correctly #10

Closed
torse opened this issue Jun 14, 2017 · 0 comments
Closed

DateTime inputs are not handled correctly #10

torse opened this issue Jun 14, 2017 · 0 comments

Comments

@torse
Copy link
Contributor

torse commented Jun 14, 2017

First problem is a TypeError in the wps-agent during parsing of "datetime" input parameters. The problematic line seems to be [1] where strptime is used to parse the xs:dateTime/ISO8601 string into a python object. This can be fixed by using strftime.

Second problem is that the datetime object is not formatted for the command line argument. This results in a command parameter like "--start_time 2017-01-01 00:00:00" as space between date and time is the default python output. However the underlying process.py except a ISO8601 string and thus fails to parse the parameter. Thus the output for the commandline needs to be formatted as well.

[1] https://github.com/geoserver/wps-remote/blob/master/src/wpsremote/computation_job_input.py#L45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant