chrishjorth / sharingear-static

HTML, CSS, JavaScript files, Images, etc.
0 stars 0 forks source link

Missing timezones implementation in the renter receipt #279

Closed dgyurov closed 9 years ago

dgyurov commented 9 years ago

WHAT IS WRONG A new Moment() object is created in order to display the renting time and date in the receipt email for the renter. However, the backend is missing the timezones library/code ,so the created Moment(), doesn't take the timezones into consideration.

HOW TO FIND IT payment.js:686

P.S. We are not using the date passed in the parameters, because the email is sent before the timestamp is updated into the database, which results into a null timestamp and "Invalid Date" in the email.

chrishjorth commented 9 years ago

This will be fixed automatically along with implementation of full booking logs. At that point the booking table will contain all information needed to produce the various emails, simplifying the backend on this regard. I'll leave the issue open though so that ve remember to verify, but remove the important label.