NOAA-ORR-ERD / WebGnomeClient

Javascript client that uses the WebGnomeAPI to create and run py_gnome models.
3 stars 9 forks source link

Don't round release time down, fix add bug in release time calc #5

Open daf opened 8 years ago

daf commented 8 years ago

If the user specified a time that wasn't rounded down to the hour, the release dialog would make a time out of sync which resulted in the "Spill time doesn't correspond with model time" or similar error message. This PR fixes that as well as corrects a bug in Moment math (.add() does not produce a result, but mutates start_time, which is then assigned to end_time so it looks like it does).