mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-08-01 19:24:00 +08:00
Fixing how the 24hours format is detected
--HG-- branch : 1.4.x
This commit is contained in:
parent
f9f5af6534
commit
8468b2fb4e
@ -13,12 +13,13 @@
|
||||
var timeFormat = dateTimeLocalization.ShortTimeFormat.Text
|
||||
.Replace("H", "h");
|
||||
|
||||
var ampm = timeFormat.ToLowerInvariant().Contains("tt") ? "true" : "false";
|
||||
var ampm = dateTimeLocalization.ShortTimeFormat.Text.Contains("H") ? "false" : "true";
|
||||
}
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
$(function() {
|
||||
|
||||
$.timepicker.regional[''] = {
|
||||
timeOnlyTitle: '@T("Choose time")',
|
||||
timeText: '@T("Time")',
|
||||
|
Loading…
Reference in New Issue
Block a user