oetiker / RrdGraphJS

An interactive graphing component for RRDtool
http://www.rrdtool.org
GNU General Public License v2.0
54 stars 7 forks source link

customize datePicker locale and format, and more #8

Closed raleik-pl closed 2 years ago

raleik-pl commented 2 years ago

This commit adds option to customize the locale and format of the datePicker box. It works by using toLocaleDateString(locale, options) method. The config fields for rrdGraphCtrl are: datePickerLocale (default: 'en-US'), and datePickerOptions (default: {}). See source code and https://developer.mozilla.org/pl/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString