parent
73decf2df9
commit
9dd444e668
1
NEWS
1
NEWS
|
@ -41,6 +41,7 @@ Bug fixes
|
|||
- [web] removed double-quotes from Chinese (Taiwan) translations that were breaking templates
|
||||
- [web] fixed unseen count retrieval of nested IMAP folders
|
||||
- [web] properly extract the mail column values from an SQL contacts source (#3544)
|
||||
- [web] fixed incorrect date formatting when timezone was after UTC+0 (#3481, #3494)
|
||||
- [eas] allow EAS attachments get on 2nd-level mailboxes (#3505)
|
||||
- [eas] fix EAS bday shift (#3518)
|
||||
|
||||
|
|
|
@ -357,15 +357,15 @@ Date.prototype.format = function(localeProvider, format) {
|
|||
date = [],
|
||||
validParts = /%[daAmbByYHIMp]/g,
|
||||
val = {
|
||||
'%d': this.getUTCDate(), // day of month (e.g., 01)
|
||||
'%e': this.getUTCDate(), // day of month, space padded
|
||||
'%a': localeProvider.shortDays[this.getUTCDay()], // locale's abbreviated weekday name (e.g., Sun)
|
||||
'%A': localeProvider.days[this.getUTCDay()], // locale's full weekday name (e.g., Sunday)
|
||||
'%m': this.getUTCMonth() + 1, // month (01..12)
|
||||
'%b': localeProvider.shortMonths[this.getUTCMonth()], // locale's abbreviated month name (e.g., Jan)
|
||||
'%B': localeProvider.months[this.getUTCMonth()], // locale's full month name (e.g., January)
|
||||
'%y': this.getUTCFullYear().toString().substring(2), // last two digits of year (00..99)
|
||||
'%Y': this.getUTCFullYear(), // year
|
||||
'%d': this.getDate(), // day of month (e.g., 01)
|
||||
'%e': this.getDate(), // day of month, space padded
|
||||
'%a': localeProvider.shortDays[this.getDay()], // locale's abbreviated weekday name (e.g., Sun)
|
||||
'%A': localeProvider.days[this.getDay()], // locale's full weekday name (e.g., Sunday)
|
||||
'%m': this.getMonth() + 1, // month (01..12)
|
||||
'%b': localeProvider.shortMonths[this.getMonth()], // locale's abbreviated month name (e.g., Jan)
|
||||
'%B': localeProvider.months[this.getMonth()], // locale's full month name (e.g., January)
|
||||
'%y': this.getFullYear().toString().substring(2), // last two digits of year (00..99)
|
||||
'%Y': this.getFullYear(), // year
|
||||
'%H': this.getHours(), // hour (00..23)
|
||||
'%M': this.getMinutes() }; // minute (00..59)
|
||||
val['%I'] = val['%H'] > 12 ? val['%H'] % 12 : val['%H']; // hour (01..12)
|
||||
|
|
Loading…
Reference in New Issue