diff --git a/.gitignore b/.gitignore
index 438cb08..1fdccea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,5 @@ node_modules
.output
.env
dist
+
+.idea
diff --git a/.idea/dictionaries/project.xml b/.idea/dictionaries/project.xml
deleted file mode 100644
index 4787784..0000000
--- a/.idea/dictionaries/project.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
deleted file mode 100644
index df7825d..0000000
--- a/.idea/inspectionProfiles/Project_Default.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index f589ca3..0000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/php.xml b/.idea/php.xml
deleted file mode 100644
index e0c73d1..0000000
--- a/.idea/php.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/prettier.xml b/.idea/prettier.xml
deleted file mode 100644
index 0c83ac4..0000000
--- a/.idea/prettier.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/tailwindcss.xml b/.idea/tailwindcss.xml
deleted file mode 100644
index ffef5f5..0000000
--- a/.idea/tailwindcss.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
deleted file mode 100644
index 94a25f7..0000000
--- a/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/web.iml b/.idea/web.iml
deleted file mode 100644
index 8ecdf73..0000000
--- a/.idea/web.iml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
deleted file mode 100644
index 7ffb07c..0000000
--- a/.idea/workspace.xml
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {
- "associatedIndex": 8
-}
-
-
-
-
-
-
-
-
- {
- "keyToString": {
- "RunOnceActivity.OpenProjectViewOnStart": "true",
- "RunOnceActivity.ShowReadmeOnStart": "true",
- "RunOnceActivity.git.unshallow": "true",
- "WebServerToolWindowFactoryState": "false",
- "code.cleanup.on.save": "true",
- "git-widget-placeholder": "main",
- "junie.onboarding.icon.badge.shown": "true",
- "last_opened_file_path": "/home/tiradoe/Projects/MovieNight/movie-night-web",
- "list.type.of.created.stylesheet": "CSS",
- "node.js.detected.package.eslint": "true",
- "node.js.detected.package.standard": "true",
- "node.js.detected.package.tslint": "true",
- "node.js.selected.package.eslint": "(autodetect)",
- "node.js.selected.package.standard": "",
- "node.js.selected.package.tslint": "(autodetect)",
- "nodejs_package_manager_path": "npm",
- "npm.dev.executor": "Run",
- "prettierjs.PrettierConfiguration.Package": "/home/tiradoe/Projects/MovieNight/movie-night-web/src/node_modules/prettier",
- "rearrange.code.on.save": "true",
- "settings.editor.selected.configurable": "configurable.group.editor",
- "ts.external.directory.path": "/home/tiradoe/Projects/MovieNight/movie-night-web/src/node_modules/typescript/lib",
- "vue.rearranger.settings.migration": "true"
- },
- "keyToStringList": {
- "vue.recent.templates": [
- "Vue Composition API Component"
- ]
- }
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1673156065550
-
-
- 1673156065550
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/components/admin/lists.vue b/src/components/admin/lists.vue
index 6925bcb..7ca4463 100644
--- a/src/components/admin/lists.vue
+++ b/src/components/admin/lists.vue
@@ -86,7 +86,10 @@ const getLists = function () {
const config = useRuntimeConfig();
$fetch(`${config.public.apiURL}/lists`, {
method: "GET",
- headers: { "Content-type": "application/json" },
+ headers: {
+ "Content-type": "application/json",
+ Authorization: `Token ${useCookie("token").value}`,
+ },
})
.then((data) => (lists.value = data))
.catch((err) => console.log(err));
diff --git a/src/components/forms/ScheduleMovie.vue b/src/components/forms/ScheduleMovie.vue
index b2bf788..60cf7c2 100644
--- a/src/components/forms/ScheduleMovie.vue
+++ b/src/components/forms/ScheduleMovie.vue
@@ -43,7 +43,8 @@ const schedule = function (e: Event) {
return false;
}
- const date = new Date(`${showtime_input}T00:00:00`);
+ let date = new Date(`${showtime_input}T23:00:00`);
+ convertToUserTimezone(date);
fetch(`${config.public.apiURL}/showings/`, {
method: "POST",
@@ -58,12 +59,16 @@ const schedule = function (e: Event) {
Authorization: `Token ${useCookie("token").value}`,
},
})
- .then((response) => response.json())
- .then((_json) => {
+ .then((_resp) => {
emits("closeModal");
})
.catch((err) => alert("Unable to schedule movie. Error:\n" + err));
};
+
+// @todo pull the timezone from a user setting
+const convertToUserTimezone = function (date: Date) {
+ date.toLocaleString("en-US", { timeZone: "America/Chicago" });
+};