tortoise / tortoise/tortoise-orm
How delete microsecond ?
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 516
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 9
Description
Save data in mysql , created_at is : 2023-02-15 00:00:00.000000,
but i want created_at is : 2023-02-15 00:00:00 , what can i do ? i want delete microsecond
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by reproducing a datetime save through the MySQL backend and trace how the ORM serializes or defines created_at values. Done means the persisted value omits fractional seconds while retaining the requested date and time.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, python
- Domain
- database
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100