mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:21:12 +08:00
FIX: handle german quotes in discourse local-dates (#8386)
https://meta.discourse.org/t/insert-date-timezone-is-always-utc-my-timezone-is-ignored/126307
This commit is contained in:
@ -13,10 +13,12 @@ function addLocalDate(buffer, matches, state) {
|
||||
countdown: null
|
||||
};
|
||||
|
||||
const matchString = matches[1].replace(/„|“/g, '"');
|
||||
|
||||
let parsed = parseBBCodeTag(
|
||||
"[date date" + matches[1] + "]",
|
||||
"[date date" + matchString + "]",
|
||||
0,
|
||||
matches[1].length + 11
|
||||
matchString.length + 11
|
||||
);
|
||||
|
||||
config.date = parsed.attrs.date;
|
||||
|
Reference in New Issue
Block a user