Skip to content

Conversation

@JeromeBu
Copy link
Collaborator

@JeromeBu JeromeBu commented Oct 3, 2025

Replace unix millisecond timestamps (bigint) with PostgreSQL
timestamp with timezone for improved readability and PostgreSQL
native date handling.

Changes:

  • Add migration to convert 5 columns:
    softwares.{referencedSinceTime,updateTime},
    instances.{referencedSinceTime,updateTime},
    software_external_datas.lastDataFetchAt
  • Update TypeScript types from number to Date for affected columns
  • Replace Date.now() with new Date() in repository and use case code
  • Update date comparisons and type conversions throughout codebase
  • Fix test fixtures to use Date objects

🤖 Generated with Claude Code

Co-Authored-By: Claude [email protected]

@JeromeBu JeromeBu self-assigned this Oct 3, 2025
@JeromeBu JeromeBu force-pushed the make-timestamps-readable branch from c8ffb1c to 0e22745 Compare October 3, 2025 14:09
Replace unix millisecond timestamps (bigint) with PostgreSQL
timestamp with timezone for improved readability and PostgreSQL
native date handling.

Changes:
- Add migration to convert 5 columns:
  softwares.{referencedSinceTime,updateTime},
  instances.{referencedSinceTime,updateTime},
  software_external_datas.lastDataFetchAt
- Update TypeScript types from number to Date for affected columns
- Replace Date.now() with new Date() in repository and use case code
- Update date comparisons and type conversions throughout codebase
- Fix test fixtures to use Date objects

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@JeromeBu JeromeBu force-pushed the make-timestamps-readable branch from 0e22745 to a7b6dc3 Compare October 3, 2025 14:28
@JeromeBu JeromeBu changed the title refactor: convert timestamp columns from bigint to timestamptz refactor: convert timestamp columns from bigint to timestamptz to make it readable in DB Oct 3, 2025
@JeromeBu JeromeBu changed the title refactor: convert timestamp columns from bigint to timestamptz to make it readable in DB refactor: convert timestamp columns from bigint to timestamptz to make it human readable in DB Oct 3, 2025
@JeromeBu JeromeBu merged commit d5cb1e5 into main Oct 3, 2025
5 checks passed
@JeromeBu JeromeBu deleted the make-timestamps-readable branch October 3, 2025 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant