Category: NodeJS
JavaScript Date Objects: Saving Dates in Different Timezones
If you are having a problem with saving a date in a specific timezone to a database whilst you are not physically located in that timezone, then Intl.DateTimeFormat() is the solution. Let’s have a look at how!
Error Connecting to Database? Check Your Require Imports
If you are getting an error that the URI parameter to openUri() must be a string in Mongoose, check your main app run file (index.js or similar) to ensure that Mongoose actually has the info required! I was receiving this error today and it took me a good 15 minutes to solve. I just couldn’t…