|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
/** Constants used for time computations */ |
|
|
|
|
import { getDate, getTime, parseInt, i18nText } from "../2.base"; |
|
|
|
|
import { getDate, getTime, parseInt } from "../2.base"; |
|
|
|
|
import { i18nText } from "../utils"; |
|
|
|
|
import { StartOfWeek } from "../constant"; |
|
|
|
|
import { isKhtml } from "../platform/web"; |
|
|
|
|
|
|
|
|
@ -343,7 +344,7 @@ export function print(date, str) {
|
|
|
|
|
s["%Q"] = qr; |
|
|
|
|
|
|
|
|
|
let re = /%./g; |
|
|
|
|
isKhtml = isKhtml || function () { |
|
|
|
|
const isNewKhtml = isKhtml || function () { |
|
|
|
|
if (!_global.navigator) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
@ -373,7 +374,7 @@ export function print(date, str) {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!isKhtml()) { |
|
|
|
|
if (!isNewKhtml()) { |
|
|
|
|
return str.replace(re, par => s[par] || par); |
|
|
|
|
} |
|
|
|
|
const a = str.match(re); |
|
|
|
|