luci-app-nlbwmon: Fixed incorrect period parameter/display
authorJo-Philipp Wich <jo@mein.io>
Fri, 1 Feb 2019 18:54:32 +0000 (13:54 -0500)
committerJo-Philipp Wich <jo@mein.io>
Fri, 15 Feb 2019 10:57:28 +0000 (11:57 +0100)
commitbd56c1aac650c9d60d9f66bb0c923b0346f3fa41
tree559a35f564a9f1c5fe275a38ed5dab09bf7f03c0
parenteda8f02dac3caa4d0f52cd1e860d7a392c295df3
luci-app-nlbwmon: Fixed incorrect period parameter/display

Switch from using the unreliable string data constructor syntax to
a more explicit year / month / day variant and pass through the
period value as-is in order to ensure that the proper start date
is requested from the backend.

This should fix issues with prevent the display of older data
periods in the nlbwmon gui.

Ref: https://github.com/jow-/nlbwmon/issues/25
Ref: https://github.com/openwrt/luci/pull/2496
Suggested-by: Aktanusa <chanam.geo@yahoo.com>
[squashed commits, add a more thorough commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw.js