Timepicker values in scripted dashboards

So this should work, since the script is only used to create the dashboard it should not affect the time picker functionality.

Are you sure that your query is properly working? Are there any errors? (How to troubleshoot metric query issues)