diff options
author | Trent Richardson <trentdrichardson@gmail.com> | 2013-04-25 12:42:11 -0400 |
---|---|---|
committer | Trent Richardson <trentdrichardson@gmail.com> | 2013-04-25 12:42:11 -0400 |
commit | a7d83b1754ed9eaa883ec09289aefe110caf9ee8 (patch) | |
tree | 324ddb3b8f835fd5324a1d6a83f6a5325f21a94b /index.html | |
parent | 99f250b97273793656ceba2246eef1387368da42 (diff) | |
download | jQuery-Timepicker-Addon-a7d83b1754ed9eaa883ec09289aefe110caf9ee8.zip jQuery-Timepicker-Addon-a7d83b1754ed9eaa883ec09289aefe110caf9ee8.tar.gz jQuery-Timepicker-Addon-a7d83b1754ed9eaa883ec09289aefe110caf9ee8.tar.bz2 |
change timezone values to minute numbers for easier formatting and js Date compat
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -212,7 +212,7 @@ <dl class="defs"> <dt>timezoneList</dt> - <dd><em>Default: [generated timezones]</em> - An array of timezones used to populate the timezone select. Can be an array of values or an array of objects: { label: "EST", value: "+0400" }</dd> + <dd><em>Default: [generated timezones]</em> - An array of timezones used to populate the timezone select. Can be an array of values or an array of objects: { label: "EDT", value: -240 }. The value should be the offset number in minutes. So "-0400" which is the format "-hhmm", would equate to -240 minutes.</dd> </dl> <h3>Time Field Options</h3> @@ -285,7 +285,7 @@ <dd><em>Default: 0</em> - Initial microsecond set. Note: Javascript's native Date object does not natively support microseconds. Timepicker adds ability to simply Date.setMicroseconds(m) and Date.getMicroseconds(). Date comparisons will not acknowledge microseconds. Use this only for display purposes.</dd> <dt>timezone</dt> - <dd><em>Default: 0</em> - Initial timezone set.</dd> + <dd><em>Default: null</em> - Initial timezone set. This is the offset in minutes. If null the browser's local timezone will be used. If you're timezone is "-0400" you would use -240. For backwards compatibility you may pass "-0400", however the timezone is stored in minutes and more reliable.</dd> <dt>hourMin</dt> <dd><em>Default: 0</em> - The minimum hour allowed for all dates.</dd> @@ -575,10 +575,10 @@ $('#timezone_example_1').datetimepicker({ $('#timezone_example_2').datetimepicker({ timeFormat: 'HH:mm z', timezoneList: [ - { value: '-0500', label: 'Eastern'}, - { value: '-0600', label: 'Central' }, - { value: '-0700', label: 'Mountain' }, - { value: '-0800', label: 'Pacific' } + { value: -300, label: 'Eastern'}, + { value: -360, label: 'Central' }, + { value: -420, label: 'Mountain' }, + { value: -480, label: 'Pacific' } ] }); </pre> |