das-developers / das2java

The original das2 library. Provides interactive publication-ready 2-D plotting
https://das2.org
GNU Lesser General Public License v3.0
4 stars 0 forks source link

Invalid states for datum ranges #27

Open jbfaden opened 2 years ago

jbfaden commented 2 years ago

When working to clean up my HAPI server, I ran across an input which causes a misformatted timerange:

time.min=2014-01-09T00:00:00.001Z&time.max=2014-01-09T00:00:00.002Z

This will be formatted as "2014-01-09 through 2014-01-08". The following code does not work to demo the bug, but something similar probably would:

tr= datumRange('2014-01-09T00:00:00.001Z/2014-01-09T00:00:00.002Z')
print tr
jbfaden commented 2 years ago

See also https://github.com/autoplot/dev/blob/master/bugs/2020/20201018/demoBug.jy