Replacing Moments JS with DayJS
This commit is contained in:
parent
ecd302068c
commit
31346e469e
7 changed files with 13 additions and 16 deletions
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
*/
|
||||
|
||||
// Init Day.JS plugins
|
||||
dayjs.extend(window.dayjs_plugin_utc);
|
||||
dayjs.extend(window.dayjs_plugin_timezone);
|
||||
|
||||
function openAddShowForm(nowOrFuture) {
|
||||
if($("#add-show-form").length == 1) {
|
||||
if( ($("#add-show-form").css('display')=='none')) {
|
||||
|
@ -63,7 +67,7 @@ function setupStartTimeWidgets() {
|
|||
var currentTimezone = $("#add_show_timezone").val();
|
||||
|
||||
//Set the show start time to now (in the show timezone)
|
||||
var now = moment(new Date()).tz(currentTimezone);
|
||||
var now = dayjs(new Date()).tz(currentTimezone);
|
||||
$('#add_show_start_date').val(now.format('YYYY-MM-DD'));
|
||||
$('#add_show_start_time').val(now.format('HH:mm'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue