Skip to content

Commit 9f2c202

Browse files
committed
Fix utc and deploy port
1 parent 6183a49 commit 9f2c202

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

EatSomewhere/Manager/FoodManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ public static ApiResponse<FoodEntry> CreateFoodEntry(User user, FoodEntry food)
201201
food.CreatedBy = user;
202202
food.Assembly = a;
203203
food.Bills = food.CalculateBills();
204+
food.Date = food.Date.ToUniversalTime();
204205

205206
// Check if food already exists and if yes, update it instead of creating it
206207
FoodEntry? existingEntry = d.FoodEntries.Where(x => x.Id == food.Id).Include(x => x.Bills).FirstOrDefault();

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
depends_on:
88
- postgres
99
ports:
10-
- "8383:8384" # Map container port 80 to host port 5000 (adjust as needed)
10+
- "8384:8384" # Map container port 80 to host port 5000 (adjust as needed)
1111
volumes:
1212
- ./dotnet_data:/app/data # Mount a volume to /app/data inside the container
1313
postgres:

0 commit comments

Comments
 (0)