[opw-web] Improve program dates in contract filenames
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [opw-web] Improve program dates in contract filenames
- Date: Tue, 15 Dec 2015 19:13:39 +0000 (UTC)
commit a108a4e865c00740fb760b0a838dd3b1d4b6e1f2
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Tue Dec 15 14:12:19 2015 -0500
Improve program dates in contract filenames
* Use zero-padded dates for the program date
* Use the selection deadline instead of application-start date
for the program date.
modules/mod_contract.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/modules/mod_contract.php b/modules/mod_contract.php
index 8baa57c..8952366 100644
--- a/modules/mod_contract.php
+++ b/modules/mod_contract.php
@@ -180,7 +180,7 @@ if ($action == 'edit_student' || $action == 'edit_mentor') {
$file_name .= '_';
$file_name .= preg_replace('/[^a-zA-Z]+/', '-', $row['contract_entered_name']);
$file_name .= '_Outreachy-';
- $file_name .= date('Y-n', $program_data['start_time']);
+ $file_name .= date('Y-m', $program_data['dl_mentor']);
$file_name .= '-';
$file_name .= strtolower($role_string);
$file_name .= '-agreement.pdf';
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]