Skip to content

Commit

Permalink
Update date format in project_details & project_list_table
Browse files Browse the repository at this point in the history
Signed-off-by: swastkk <[email protected]>
  • Loading branch information
swastkk committed Mar 5, 2024
1 parent 385f3c0 commit 14978c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div>
{% include 'scanpipe/includes/project_labels.html' with labels=project.labels.all only %}
</div>
<span class="has-text-grey is-size-7 is-block" title="{{ project.created_date|date:'N j, Y, P T' }}">Created {{ project.created_date|naturaltime }}</span>
<span class="has-text-grey is-size-7 is-block" title="{{ project.created_date|naturaltime }}">Created {{ project.created_date|date:'Y-m-d H:i' }}</span>
</th>
<td>
{% if project.discoveredpackages_count %}
Expand Down
5 changes: 2 additions & 3 deletions scanpipe/templates/scanpipe/project_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@
</nav>
<div class="subtitle is-size-6">
<span class="has-text-grey">
<span title="{{ project.created_date|date:'N j, Y, P T' }}">
Created {{ project.created_date|naturaltime }}
</span>
<span title="{{ project.created_date|naturaltime }}">
Created {{ project.created_date|date:'Y-m-d H:i' }}</span>
</span>
{% include 'scanpipe/includes/project_labels.html' with labels=labels only %}
<a class="modal-button is-size-7" data-target="add-labels-modal" aria-haspopup="true">
Expand Down

0 comments on commit 14978c4

Please sign in to comment.