You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -182,19 +182,20 @@ This captures the state of the first version of the plugin, which allows for dyn
182
182
The output format of the date and the time are fixed and do not support short weekdays or short months.
183
183
Can take a custom timestamp; if the timestamp is server generated it may have to be multiplied by 1000 to account for milliseconds.
184
184
This version of the plugin doesn't do anything to account for timezone offsets, which means that the clock's time may not reflect the server's timezone time.
185
-
Direct link: [v2.0.2](https://github.com/Lwangaman/jQuery-Clock-Plugin/releases/tag/v2.0.2)
185
+
### Direct link: [v2.0.2](https://github.com/Lwangaman/jQuery-Clock-Plugin/releases/tag/v2.0.2"https://github.com/Lwangaman/jQuery-Clock-Plugin/releases/tag/v2.0.2")
186
186
187
187
## v2.0.9b
188
188
189
-
Version 2.0.9 fixes the problems which arise from the timezone offsets. In order to faithfully reflect the server's timestamp in UTC time, the plugin corrects the client timezone offset so that it the clock's time will reflect UTC time. However if the server has set a timezone offset from UTC time, this will need to be accounted for server-side before passing the timestamp to the plugin.
190
-
Seeing that this process only needs to take place when a server-generated timestamp is being passed in, this version of the plugin detects if the timestamp is server-generated by checking whether it takes into account milliseconds or not. This means we no longer multiply the server-generated timestamp by 1000 before passing it to the plugin, the plugin will use that information to determine that the timestamp was server-generated and will thus account for client timezone offsets.
189
+
Version 2.0.9 fixes the problems which arise from the timezone offsets. In order to faithfully reflect the server's timestamp in UTC time, the plugin corrects the client timezone offset so that the jQuery Clock's time will reflect UTC time.
190
+
However if the server has set a timezone offset from UTC time, this will need to be accounted for server-side *before* passing the timestamp to the plugin.
191
+
Seeing that this process only needs to take place when a server-generated timestamp is being passed in, this version of the plugin detects if the timestamp is server-generated by checking whether it takes into account milliseconds or not. *This means we no longer multiply the server-generated timestamp by 1000 before passing it to the plugin.* In fact the plugin will use that information to determine whether the timestamp was server-generated so that it can then account for client timezone offsets.
191
192
The tag was renamed 2.0.9b because I forgot to update the minified version the first time; 2.0.9b has an updated minified javascript file.
192
-
Direct link: [v2.0.9b](https://github.com/Lwangaman/jQuery-Clock-Plugin/releases/tag/v2.0.9b)
193
+
### Direct link: [v2.0.9b](https://github.com/Lwangaman/jQuery-Clock-Plugin/releases/tag/v2.0.9b"https://github.com/Lwangaman/jQuery-Clock-Plugin/releases/tag/v2.0.9b")
193
194
194
195
## v2.1.0b
195
196
196
197
Version 2.1.0 adds the short version of weekdays and months to the supported locales. Note that the currently supported locales do not guarantee linguistic correctness, the stored values for shortened months and weekdays are guesswork and are not based on any kind of standard usage.
197
198
This version also introduces PHP style date and time formatting. This gives the end user more flexibility in choosing how the date and time should appear on the clock. This also means that some option parameters that existed in previous versions have been deprecated, such as the "format" parameter which let the user choose between 12 and 24 hour format, the "seconds" parameter which let the user choose whether to display seconds or not; at the same time more option paramters are added such as "dateFormat" and "timeFormat" which recognize a number of PHP style format characters.
198
199
Again the tag was renamed 2.1.0b because the javascript was not initially minified.
199
-
Direct link: [v2.1.0b](https://github.com/Lwangaman/jQuery-Clock-Plugin/releases/tag/v2.1.0b)
200
+
### Direct link: [v2.1.0b](https://github.com/Lwangaman/jQuery-Clock-Plugin/releases/tag/v2.1.0b"https://github.com/Lwangaman/jQuery-Clock-Plugin/releases/tag/v2.1.0b")
0 commit comments