Skip to content

Commit

Permalink
[UPDT] ATTENDANCE: Updated attendance activity export method by addin…
Browse files Browse the repository at this point in the history
…g validation for time format change
  • Loading branch information
horilla-opensource committed Mar 11, 2024
1 parent 241b7d6 commit 524419a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
data-target="#editValidateAttendanceRequest"
data-toggle="oh-modal-toggle"
class="oh-btn oh-btn--info w-100"
>
>
<ion-icon name="create-outline"></ion-icon>
{% trans "Edit" %}
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<div class="oh-btn-group">
<a
class="oh-btn oh-btn--light-bkg w-100"
title="{% trans 'View and Edit' %}"
title="{% trans 'View' %}"

><ion-icon
name="eye-outline"
Expand Down
2 changes: 1 addition & 1 deletion base/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def export_data(request, model, form_class, filter_class, file_name):
}

# Convert the string to a datetime.time object
check_in_time = datetime.strptime(str(value), "%H:%M:%S").time()
check_in_time = datetime.strptime(str(value).split('.')[0], "%H:%M:%S").time()

# Print the formatted time for each format
for format_name, format_string in time_formats.items():
Expand Down

0 comments on commit 524419a

Please sign in to comment.