Skip to content

Commit

Permalink
fix: corected weekdays
Browse files Browse the repository at this point in the history
  • Loading branch information
ajesuscode committed Oct 25, 2023
1 parent 680b4d6 commit 073e59f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/utils/surfUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,10 @@ export function getCurrentPintxoConditions(
export function getWeekdayPintxoCondition(
data: Pintxo[]
): WeekdayPintxoCondition {
const weekdays = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
const weekdays = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
const weekdayConditions: {
[weekday: string]: { [condition: string]: number };
} = {};
console.log("data", data);

for (const item of data) {
const date = DateTime.fromISO(item.time, { zone: "UTC" })
Expand Down

0 comments on commit 073e59f

Please sign in to comment.