Skip to content

Commit a711d95

Browse files
committed
(Fix #384) Restrict date_registered to date only
1 parent b72f527 commit a711d95

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

okapi/services/users/user.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
use the <b>uuid</b> as the user identifier),
3838
</li>
3939
<li>
40-
<b>date_registered</b> - date and time (ISO 8601) indicating when exactly
41-
has the user registered his Opencaching account,
40+
<b>date_registered</b> - date (ISO 8601, no time) indicating when the user
41+
has registered his Opencaching account,
4242
</li>
4343
<li><b>caches_found</b> - number of "Found it" and "Attended" log entries,</li>
4444
<li><b>caches_notfound</b> - number of "Didn't find it" log entries,</li>

okapi/services/users/users.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public static function call(OkapiRequest $request)
7070
}
7171
break;
7272
case 'internal_id': $entry['internal_id'] = $row['user_id']; break;
73-
case 'date_registered': $entry['date_registered'] = date('c', strtotime($row['date_created']));
73+
case 'date_registered': $entry['date_registered'] = date("Y-m-d", strtotime($row['date_created']));
7474
case 'caches_found': /* handled separately */ break;
7575
case 'caches_notfound': /* handled separately */ break;
7676
case 'caches_hidden': /* handled separately */ break;

0 commit comments

Comments
 (0)