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

[논의] Mogno DB Date Type 관련 #4

Open
kkoon9 opened this issue Nov 29, 2020 · 2 comments
Open

[논의] Mogno DB Date Type 관련 #4

kkoon9 opened this issue Nov 29, 2020 · 2 comments

Comments

@kkoon9
Copy link
Contributor

kkoon9 commented Nov 29, 2020

Data Type

  • yyyy-MM-dd 형태로 통신하기로 했음

mongoose Data Type

  • 2020-10-22T00:48:30.926+00:00 의 형태로 저장된다.
@kkoon9
Copy link
Contributor Author

kkoon9 commented Nov 29, 2020

해결 방안 [1]

  • moment library 사용
  • mongoDB에는 Date.now 형태인 2020-10-22T00:48:30.926+00:00 형태로 저장
  • 클라이언트와 통신 시 데이터를 가공하여 전달

references

@kkoon9
Copy link
Contributor Author

kkoon9 commented Dec 3, 2020

해결 방안 [2]

  • mongoDB에는 String 형태로 저장 (yyyy-MM-dd, 이하 Date 포멧)
  • 스프린트가 추가될 때 Date 포멧으로 저장

kkoon9 added a commit that referenced this issue Dec 10, 2020
feat: database ver 0.0.3으로 변경
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

No branches or pull requests

1 participant