I would like to have today's date as a starting point, so I chose 'today' as property value. It seemed to work first, but when I ran the dashboard the next day, it started from the yesterday's date. How can I fix this? Thanks.
I would like to have today's date as a starting point, so I chose 'today' as property value. It seemed to work first, but when I ran the dashboard the next day, it started from the yesterday's date. How can I fix this? Thanks.
In case you're using cde, there's a property that sets exactly that. It has advantages compared to using javascript to set the default date if you're on a multi timezone environment
Pedro Alves
Meet us on ##pentaho, a FreeNode irc channel
Need to look into that. Is the server date in the same timezone of the client?
Pedro Alves
Meet us on ##pentaho, a FreeNode irc channel
is there a workaround I can use in the meantime? some kind of javascript, which would work only once at start time...
erm yes.. the following javascript code will give you the date which is set on the client side computer
Google is your friend!Code:var todaysDate = currentDate(); function currentDate(){ var currentTime = new Date(); var day = currentTime.getDate(); var month = currentTime.getMonth()+1; var year = currentTime.getFullYear(); return(year+"-"+month+"-"+day); }
So how does everyone solve this problem? It must be a very common task: set up a dashboard in such a way that when you load it, dates default to the current date.