创建时间
This commit is contained in:
parent
1d2587422f
commit
f63eb4ad70
|
|
@ -163,7 +163,7 @@ public class AllocationService : IAllocationService
|
|||
Unit = unit,
|
||||
TotalQuota = totalQuota,
|
||||
CreatedByUnitId = createdByUnitId,
|
||||
CreatedAt = DateTime.UtcNow
|
||||
CreatedAt = DateTime.Now
|
||||
};
|
||||
|
||||
_context.MaterialAllocations.Add(allocation);
|
||||
|
|
|
|||
|
|
@ -436,6 +436,7 @@ const filteredAllocations = computed(() => {
|
|||
})
|
||||
|
||||
function formatDate(dateStr: string): string {
|
||||
if (!dateStr) return '-'
|
||||
const date = new Date(dateStr)
|
||||
const year = date.getFullYear()
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0')
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user