User:Dragomaniaca/How to change to 24 hour time

From OpenStreetMap Wiki
Jump to navigation Jump to search

First, do not edit the time directly. To change it into 24 hour time, you need to use the following code on your common.js:

importScript('User:Dragomaniaca/24hourtime.js'); // Backlink: [[User:Dragomaniaca/24hourtime.js]]

Please keep the text // Backlink: [[User:Dragomaniaca/24hourtime.js]] in there so I can know you're using it. The time will then transform from 1:20 PM to 13:20. If it doesn't work, try this:

{{subst:User:Dragomaniaca/24hourtime.js}}
// Substituted from [[User:Dragomaniaca/24hourtime.js]]

Still please keep this in there: // Substituted from [[User:Dragomaniaca/24hourtime.js]]. That lets me know you're using it.