From: Alexander Ebert Date: Thu, 28 Mar 2013 00:05:47 +0000 (+0100) Subject: 'S' (2nd/3rd/etc) will be dropped in jQuery UI's datepicker X-Git-Tag: 2.0.0_Beta_1~406^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5e4cf40efc9968552906a0ed31f04325664dc839;p=GitHub%2FWoltLab%2FWCF.git 'S' (2nd/3rd/etc) will be dropped in jQuery UI's datepicker --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 159c2cad2e..df0366120f 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2148,7 +2148,6 @@ WCF.Date.Picker = { // // No equivalence in jQuery UI date picker: // N ISO-8601 numeric representation of the day of the week - // S English ordinal suffix for the day of the month, 2 characters // w Numeric representation of the day of the week // W ISO-8601 week number of year, weeks starting on Monday // t Number of days in the given month @@ -2160,6 +2159,7 @@ WCF.Date.Picker = { 'j': 'd', 'l': 'DD', 'z': 'o', + 'S': '', // English ordinal suffix for the day of the month, 2 characters, will be discarded // month 'F': 'MM', @@ -2179,7 +2179,7 @@ WCF.Date.Picker = { // do the actual replacement // this is not perfect, but a basic implementation and should work in 99% of the cases // TODO: support literals (magics are escaped in PHP date() by an \, in jQuery UI DatePicker they are enclosed in '') - this._dateFormat = WCF.Language.get('wcf.date.dateFormat').replace(/([^dDjlzFmMnoYyU\\]*(?:\\.[^dDjlzFmMnoYyU\\]*)*)([dDjlzFmMnoYyU])/g, function(match, part1, part2, offset, string) { + this._dateFormat = WCF.Language.get('wcf.date.dateFormat').replace(/([^dDjlzSFmMnoYyU\\]*(?:\\.[^dDjlzSFmMnoYyU\\]*)*)([dDjlzSFmMnoYyU])/g, function(match, part1, part2, offset, string) { for (var $key in $replacementTable) { if (part2 == $key) { part2 = $replacementTable[$key];