* Rewrite _currentDate to work in all time zones
The method toISOString() returns a timestamp in UTC. Thus, midnight in the CET
timezone (UTC+1) was converted into yesterday@2300 and then that date was used
as the current date.
This made the logbook and history start with yesterday's data, at least for
locations east of UTC.
The new version avoids this by using methods that work in local time.
* Remove an embarrassing amount of lint
* Rewrite to be more concise
Proposed by @armills.
* Fix color picker
* Fix map panel CSS
* Convert logbook to use vaadin date picker
* Fix logbook clear date
* Migrate history panel to use vaadin date picker
* Remove pikaday
* Lint
* history panel: disable on loading
* Take navigator.languages into account when determining the preferred language
* Lookup language only once, use it also for other date/time functions
* Show the date picker value in localized date
* Show the date picker value in localized date (in history)
With the removal of moment.js, dates and times are no longer formatted
using the native locale. This allows the browser to format if the
functionality is available (Everyone but Safari).
Also included is a correction in relativeTime. Times in the future were
being displaed incorrectly -xxx seconds, and the in/ago verbage was
reintroduced.