瀏覽代碼

Add timezone to the date range on full calendar

Vijayakrishnan 3 年之前
父節點
當前提交
04174a77cf
共有 2 個文件被更改,包括 12 次插入0 次删除
  1. 5 0
      public/css/style.css
  2. 7 0
      resources/views/app/patient/appointment-calendar.blade.php

+ 5 - 0
public/css/style.css

@@ -1674,6 +1674,11 @@ th.only-screen, td.only-screen {
     overflow-x: hidden !important;
 }
 
+.stag-fc-container .fc-toolbar-title .tz-display {
+    font-size: inherit;
+    font-family: inherit;
+}
+
 .caremonth-measurements-calendar .fc-event.m-weight {
     background: #38908f;
     color: #fff;

+ 7 - 0
resources/views/app/patient/appointment-calendar.blade.php

@@ -684,6 +684,13 @@
                                 }, 250);
                             }
                             @endif
+                            setTimeout(() => {
+                                $('.fc-toolbar-title .tz-display').remove();
+                                $('<span/>')
+                                    .addClass('pl-2 tz-display text-secondary')
+                                    .text('(Timezone: ' + this.timezone + ')')
+                                    .appendTo($('.fc-toolbar-title'));
+                            }, 0);
                         },
                         dateStr: function(_dateTime) {
                             return _dateTime.getFullYear() + "-" +