In my nodejs project, new Date() function is giving me a datetime that is six hours behind from my local datetime. Suppose if my local time is 2023-05-11T10:00:00.070Z its giving me 2023-05-11T04:00:00.070Z. There is nothing wrong with the datetime of my pc. Then why is it happening ? How can I get the actual datetime ?
My current timezone is Asia/Dhaka
code:
var current_date = new Date()
console.log(current_date)
Please help.