Skip to content
Snippets Groups Projects
Commit f2a63b31 authored by Haakon Tideman Kanter's avatar Haakon Tideman Kanter
Browse files

Fixed month for rent history

parent 4d21c8d4
No related branches found
No related tags found
1 merge request!140Fixed hh:mm with numbers under 10
Pipeline #181853 passed with stage
in 59 seconds
......@@ -97,7 +97,10 @@ export default {
getDateString(milliseconds) {
let today = new Date();
let date = new Date(milliseconds);
let dateString = date.getDate() + "." + (date.getMonth() + 1);
const shortMonthOfRentHistoryItem = date.toLocaleString("default", {
month: "short",
});
let dateString = date.getDate() + ". " + shortMonthOfRentHistoryItem;
if (date.getFullYear() != today.getFullYear()) {
dateString += "." + date.getFullYear();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment