Skip to content

Commit

Permalink
corrected time parsing for type=time
Browse files Browse the repository at this point in the history
  • Loading branch information
jcolson committed Mar 12, 2021
1 parent 971fd8c commit 2a7798a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http_views/events.pug
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ block content
input(type='text' name='duration_hours' placeholder='Duration (in hours)', value=`${event?event.duration_hours:''}`)
| Start (Date):
input(type='date' name='date', value=`${event?event.date_time.toISOString().substring(0,10):''}`)
| Start (Time): #{event.date_time.toISOString().substring()}
input(type='time' name='time', value=`${event?event.date_time.getHours()+":"+event.date_time.getMinutes():''}`)
| Start (Time):
input(type='time' name='time', value=`${event?event.date_time.toISOString().substring(11,16):''}`)
| Number of Players:
input(type='text' name='number_player_slots' placeholder='Number of Players', value=`${event?event.number_player_slots:''}`)
| Campaign:
Expand Down

0 comments on commit 2a7798a

Please sign in to comment.