more messing with time, applying default time on drag and drop

This commit is contained in:
2023-07-26 13:54:48 -06:00
parent cc09d32bcf
commit 9c547b3435
3 changed files with 28 additions and 13 deletions

View File

@@ -31,14 +31,9 @@
{
get
{
// 12 AM
@* if (Time.Hour == 0)
return 12; *@
// AM hours
if (Time.Hour <= 11)
return Time.Hour;
// PM hours
return Time.Hour + 1 - 12;
var time = Time.Hour % 12;
if (time == 0) return 12;
return time;
}
}
@@ -71,7 +66,7 @@
>
<option
value="12"
selected="@(12 == Time.Hour)"
selected="@(12 == AdjustedHour)"
>
12
</option>
@@ -79,7 +74,7 @@
{
<option
value="@hour"
selected="@(hour == Time.Hour)"
selected="@(hour == AdjustedHour)"
>
@hour.ToString("00")
</option>