mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
User: bug fix with birthday
This commit is contained in:
parent
f611c89f13
commit
20ca453e34
1 changed files with 4 additions and 2 deletions
|
@ -384,10 +384,12 @@
|
|||
<td class="label"><span class="nobold">{_"politViews"}:</span></td>
|
||||
<td class="data">{var $pviews = $user->getPoliticalViews()}{_"politViews_$pviews"}</td>
|
||||
</tr>
|
||||
{if $user->getBirthday() != 0}
|
||||
{if $user->getBirthday() > 0}
|
||||
<tr>
|
||||
<td class="label"><span class="nobold">{_"birth_date"}:</span></td>
|
||||
<td class="data">{date('d F Y',$user->getBirthday())}, {date('Y') - date('Y', $user->getBirthday())} {_"years"}</td>
|
||||
<td class="data">{date('d F Y',$user->getBirthday())},
|
||||
{date('m d') >= date('m d', $user->getBirthday()) ? date('Y') - date('Y', $user->getBirthday()) :
|
||||
(date('m d') < date('m d', $user->getBirthday()) ? date('Y') - date('Y', $user->getBirthday()) - 1)} {_"years"}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in a new issue