diff --git a/.gitignore b/.gitignore
index 1fdccea..438cb08 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,5 +6,3 @@ node_modules
.output
.env
dist
-
-.idea
diff --git a/.idea/dictionaries/project.xml b/.idea/dictionaries/project.xml
new file mode 100644
index 0000000..4787784
--- /dev/null
+++ b/.idea/dictionaries/project.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..df7825d
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..f589ca3
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/php.xml b/.idea/php.xml
new file mode 100644
index 0000000..e0c73d1
--- /dev/null
+++ b/.idea/php.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/prettier.xml b/.idea/prettier.xml
new file mode 100644
index 0000000..0c83ac4
--- /dev/null
+++ b/.idea/prettier.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/tailwindcss.xml b/.idea/tailwindcss.xml
new file mode 100644
index 0000000..ffef5f5
--- /dev/null
+++ b/.idea/tailwindcss.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/web.iml b/.idea/web.iml
new file mode 100644
index 0000000..8ecdf73
--- /dev/null
+++ b/.idea/web.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..7ffb07c
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,162 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {
+ "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 7ca4463..6925bcb 100644
--- a/src/components/admin/lists.vue
+++ b/src/components/admin/lists.vue
@@ -86,10 +86,7 @@ const getLists = function () {
const config = useRuntimeConfig();
$fetch(`${config.public.apiURL}/lists`, {
method: "GET",
- headers: {
- "Content-type": "application/json",
- Authorization: `Token ${useCookie("token").value}`,
- },
+ headers: { "Content-type": "application/json" },
})
.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 60cf7c2..b2bf788 100644
--- a/src/components/forms/ScheduleMovie.vue
+++ b/src/components/forms/ScheduleMovie.vue
@@ -43,8 +43,7 @@ const schedule = function (e: Event) {
return false;
}
- let date = new Date(`${showtime_input}T23:00:00`);
- convertToUserTimezone(date);
+ const date = new Date(`${showtime_input}T00:00:00`);
fetch(`${config.public.apiURL}/showings/`, {
method: "POST",
@@ -59,16 +58,12 @@ const schedule = function (e: Event) {
Authorization: `Token ${useCookie("token").value}`,
},
})
- .then((_resp) => {
+ .then((response) => response.json())
+ .then((_json) => {
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" });
-};