diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-08-23 20:47:29 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-08-23 20:47:29 +0200 |
commit | 97198afd29a8d41e5ab9f9edd5f9f71b38c9d355 (patch) | |
tree | 64e83da633dafbc0792c9eabf0ca30ac45cb6677 /templates | |
parent | d3a6a99e9c1751ec08bed526d4ce7237425cdf73 (diff) | |
download | ramaskrik-social-97198afd29a8d41e5ab9f9edd5f9f71b38c9d355.tar.gz ramaskrik-social-97198afd29a8d41e5ab9f9edd5f9f71b38c9d355.tar.bz2 ramaskrik-social-97198afd29a8d41e5ab9f9edd5f9f71b38c9d355.zip |
Store timestamps in UTC.
For now we just hardcode that the local timezone of the site is UTC+2.
Good enough for now, but something that should be configurable.
Also split the date and time entries in the form again, the date refers
to the start date. If the end time is before the start time, we assume
it's the day after. Again, good enough for now.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/screening/new.tera | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/screening/new.tera b/templates/screening/new.tera index fd6be2f..0c3eb73 100644 --- a/templates/screening/new.tera +++ b/templates/screening/new.tera @@ -20,11 +20,14 @@ <option value="{{ room.id }}">{{ room.name }}</option> {% endfor %} + <label for="date">Date: </label> + <input name="date" type="date"> + <label for="start_time">Start time: </label> - <input name="start_time" type="datetime"> + <input name="start_time" type="time"> <label for="end_time">End time: </label> - <input name="end_time" type="datetime"> + <input name="end_time" type="time"> </select> <input type="submit" value="Save"> |