Skip to content

Commit

Permalink
Enforce german locale for time strings in markdown (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasrad02 authored Feb 13, 2024
1 parent f52722e commit 8b7d633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions myhpi/static/js/admin/easymde_custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ window.wagtailMarkdown.options = {

// convenience function
function getCurrentTime(){
return new Date().toLocaleTimeString([], {timeStyle: 'short'})
return new Date().toLocaleTimeString("de-DE", {timeStyle: 'short'})
}

// Custom button actions
Expand Down Expand Up @@ -156,4 +156,4 @@ function addQuorum(editor){

output = "\n|quorum|(/)";
cm.replaceSelection(output);
}
}

0 comments on commit 8b7d633

Please sign in to comment.