Skip to content

Timestamp abstraction (now/currentTimestamp) #1

@SoDaHo

Description

@SoDaHo

SQLite needs datetime('now', 'localtime'), MySQL needs NOW().
Would be nice to have something like Database::now() that returns the right expression per driver.

Current workaround: PHP date('Y-m-d H:i:s') instead of DB-native timestamps.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions