Adjust time according to local timezone

If "browser" timezone is specified then date histograms for periods larger that 1h will be aligned to local timezone.

Here in Europe/Moscow (UTC+4) if you histogram interval is set to 1d then days start at 4AM. With this patch days are aligned to 00:00. It would be great if someone could confirm the same in their local timezone.