This lib is a dependency for Eiada Doctor app to be able to share and reuse services like payment service
- All dates are saved UTC to the db regardless of the machine/process timezone
- No need to convert dates generated by the code as it will be UTC by default when saving
- We must convert all dates come from user requests. Use
DateTzService.getDate()
- For any date comparison, make sure that we compare a date/moment object as it has the tz stored inside it and will cast the dates to timestamp during comparisons
- Timestamp are always UTC regardless of the timezone of the machine/process
- Format all response dates to user timezone. Use
DateTzService.getFormattedDate()
Create a tunnel using this command $ ssh -R 443:localhost:7000 ssh.localhost.run
and use https://GENERATED_URL
- username: mouneer
- Password: P@ssw0rd
- username: TestDoctor
- Password: P@ssw0rd
$ ACCEPT_PAYMENTS_MODE=test;TZ=UTC npm run inspect
- Pushing to the master branch deploys to AWS Lambda