Adjust date display

This commit is contained in:
Fred Boniface 2023-07-02 21:09:29 +01:00
parent f096544ded
commit 5b1daf31e6
1 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@
async function expand() { async function expand() {
isExpanded = !isExpanded isExpanded = !isExpanded
} }
</script> </script>
<div class="container"> <div class="container">
@ -22,7 +23,7 @@
{/if} {/if}
<p class="svc-detail">Planned Type: {parseInt(service.planSpeed) || 68 }mph {service.powerType || "Bus" }</p> <p class="svc-detail">Planned Type: {parseInt(service.planSpeed) || 68 }mph {service.powerType || "Bus" }</p>
<p class="svc-detail">Days Run: {service.daysRun.join(", ").toUpperCase()}</p> <p class="svc-detail">Days Run: {service.daysRun.join(", ").toUpperCase()}</p>
<p class="svc-detail validity">Valid From: {new Date(service.scheduleStartDate).toLocaleDateString('en-GB')} - {new Date(service.scheduleEndDate).toLocaleDateString('en-GB')}</p> <p class="svc-detail validity">Valid From: {new Date(service.scheduleStartDate).toLocaleDateString('en-GB', {timeZone: 'UTC'})} - {new Date(service.scheduleEndDate).toLocaleDateString('en-GB', {timeZone: 'UTC'})}</p>
<table> <table>
<tr> <tr>
<th>Location</th> <th>Location</th>
@ -71,7 +72,7 @@
padding-left: 10px; padding-left: 10px;
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
padding-top: 10px; padding-top: 12px;
padding-bottom: 10px; padding-bottom: 10px;
} }
#container-arrow { #container-arrow {