Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[back] Date as ISO-8601 #228

Open
Benvii opened this issue Jun 26, 2021 · 3 comments
Open

[back] Date as ISO-8601 #228

Benvii opened this issue Jun 26, 2021 · 3 comments
Labels
🔧 Backend a backend issue
Milestone

Comments

@Benvii
Copy link
Member

Benvii commented Jun 26, 2021

Date on messages aren't in ISO-8601 :

{
  "messages": [
    {
      "author": "60d7207f468fc3596b100b3e", 
      "content": "test TS", 
      "id": "60d723b5468fc3596b100b42", 
      "roomId": "60d723ad468fc3596b100b41", 
      "timestamp": "2021-06-26T12:55:17.802000"
    }
  ]
}

Date should be : 2021-06-26T12:55:17.802000Z

@Benvii Benvii added the 🔧 Backend a backend issue label Jun 26, 2021
@Benvii Benvii added this to the V1 milestone Jun 26, 2021
@Draeggon
Copy link
Contributor

Draeggon commented Jun 29, 2021

sadly it seem that mongoengine is storing time like that and i can't do anything about that

@Draeggon Draeggon modified the milestones: V1, V2 Jul 10, 2021
@Draeggon Draeggon removed their assignment Jul 11, 2021
@yannis-mlgrn
Copy link
Member

@Draeggon , @Benvii .We close the issue ?

@Draeggon
Copy link
Contributor

I can only add the timezone in the form +00:00 but javascript seem to understand this well and replace it with a Z when converted from string. I will submit a pr soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 Backend a backend issue
Projects
None yet
Development

No branches or pull requests

3 participants