Просмотр исходного кода

Start working on date utility service

arvid-e 5 месяцев назад
Родитель
Сommit
88f1deb773
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      apps/app/src/server/routes/contributions.ts

+ 8 - 0
apps/app/src/server/routes/contributions.ts

@@ -0,0 +1,8 @@
+// !!
+// not sure where to put the utility functions
+// so put them here temporarely
+
+export const getCurrentWeekNumber = (date: Date) => {
+  const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
+
+};