feat: Update date handling to use local time formatting across various components and queries
This commit is contained in:
@@ -68,7 +68,7 @@ async function createNoteHandler(req) {
|
||||
.prepare(
|
||||
`
|
||||
INSERT INTO notes (project_id, task_id, note, created_by, note_date)
|
||||
VALUES (?, ?, ?, ?, CURRENT_TIMESTAMP)
|
||||
VALUES (?, ?, ?, ?, datetime('now', 'localtime'))
|
||||
`
|
||||
)
|
||||
.run(project_id || null, task_id || null, note, req.user?.id || null);
|
||||
|
||||
@@ -746,7 +746,7 @@ export default function ProjectViewPage() {
|
||||
<div className="flex items-center justify-between mb-2">
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="text-sm font-medium text-gray-500">
|
||||
{n.note_date}
|
||||
{formatDate(n.note_date, { includeTime: true })}
|
||||
</span>
|
||||
{n.created_by_name && (
|
||||
<span className="px-2 py-1 text-xs bg-blue-100 text-blue-700 rounded-full font-medium">
|
||||
|
||||
Reference in New Issue
Block a user