Skip to content

Commit

Permalink
adjust fetch calls
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD committed Jun 4, 2024
1 parent eaf29a1 commit 8e1b835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/schemas/timezone.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const ready = {

// Get timezones
onServerOpen(async () => {
await fetch(new URL("/time/timezones", baseUrl))
await fetch(new URL("/system/all_timezones", baseUrl))
.then((res) => res.json())
.then((timezones) => {
console.log(timezones);
Expand All @@ -25,7 +25,7 @@ onServerOpen(async () => {

// Get timezone
onServerOpen(async () => {
await fetch(new URL("/time/timezone", baseUrl))
await fetch(new URL("/system/local_timezone", baseUrl))
.then((res) => res.json())
.then((timezone) => {
console.log(timezone);
Expand Down

0 comments on commit 8e1b835

Please sign in to comment.