[Py4web 1.20210906.1] Change in timestamp format in restAPI

Open
#656 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
api

Research direction

Start by tracing the Py4web REST API GET timestamp output and comparing it with the POST timestamp parsing described in the issue. Review the related PyDAL and Py4web history mentioned by the reporter. Done means GET and POST use the same timestamp format, with coverage for both directions.

Written by the indexing model from the issue text.

Description

bug

Hi,

As I mentioned in the google group, I noticed a change in the timestamp format OUTPUT of the restAPI.

It changed from:
(1) yyyy-mm-ddThh:mm:ss
to
(2) yyyy-mm-dd hh:mm:ss

The tricky thing is that it accepts format (1) for POST, but you receive (2) when GET. It makes doing some different and extra work on maintaining the code.

Capture d’écran de 2021-11-01 14-55-38
Capture d’écran de 2021-11-01 14-56-09

I screened last commits in PyDal and Py4web but I couldn't find the change.

https://groups.google.com/g/py4web/c/hyEFF0G92UU

Mamisoa

Dominant language
HTML
Stars
319
Forks
144
Avg merge
6d 20h
Merged PRs (30d)
3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from web2py/py4web

All issues in web2py/py4web

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.