Split date and time on device detail screen, relates to issue #24.
This commit is contained in:
parent
76fd5ef9a1
commit
35f34fedbb
@ -150,6 +150,8 @@ app.get('/core/:id', function(req, res){
|
|||||||
var localDtTm = moment.utc(row.published_at);
|
var localDtTm = moment.utc(row.published_at);
|
||||||
localDtTm = moment(localDtTm).tz('America/New_York').format('MM-DD-YYYY HH:mm:ss');
|
localDtTm = moment(localDtTm).tz('America/New_York').format('MM-DD-YYYY HH:mm:ss');
|
||||||
row.published_at = localDtTm;
|
row.published_at = localDtTm;
|
||||||
|
row.pubDate = moment(localDtTm).format('MM-DD-YYYY');
|
||||||
|
row.pubTime = moment(localDtTm).format('h:mm:ss a');
|
||||||
});
|
});
|
||||||
|
|
||||||
res.render('core', {alerts: rows}, function(err, html) {
|
res.render('core', {alerts: rows}, function(err, html) {
|
||||||
|
@ -16,14 +16,16 @@
|
|||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Timestamp</th>
|
<th>Date</th>
|
||||||
|
<th>Time</th>
|
||||||
<th>Status</th>
|
<th>Status</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{{#each alerts}}
|
{{#each alerts}}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{this.published_at}}</td>
|
<td>{{this.pubDate}}</td>
|
||||||
|
<td>{{this.pubTime}}</td>
|
||||||
<td>{{this.status}}</td>
|
<td>{{this.status}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
Loading…
Reference in New Issue
Block a user