Verified Commit be0b3c7b authored by Luc Didry's avatar Luc Didry
Browse files

🐛 — Fix #161 — Translate dates in invitations

Many thanks to https://framagit.org/RainX who reported the bug and
provided the fix 🙂
parent b5984507
......@@ -29,6 +29,7 @@
- Mildis (bugfix)
- TECH'advantage, https://www.tech-advantage.com/ (paid for LDAP invitations feature)
- pi2 (typo)
- Rain (bugfix)
## Vulnerabilities / bug hunters 🐛
......
Revision history for Lufi
?.??.? ????-??-??
- Translate dates in invitations (#161)
- Ignore all .conf files in .gitignore
- Remove redundant fixed_domain setting in conf template
0.04.2 2019-08-14
- Update german language
......
......@@ -81,7 +81,7 @@ sub send_invite {
ldap_user => ucfirst($invitation->ldap_user),
url => $url,
invitation => $invitation,
expires => time2str($c->l('%A %d %B %Y at %T'), $invitation->expire_at)
expires => $c->get_date_lang()->time2str($c->l('%A %d %B %Y at %T'), $invitation->expire_at)
);
push @success, $c->l('Invitation sent to %1.<br> URL: %2', $invitation->guest_mail, $url);
......@@ -156,7 +156,7 @@ sub resend_invitations {
my $from = ($c->config('invitations')->{'send_invitation_with_ldap_user_mail'}) ? $i->ldap_user_mail : $c->config('mail_sender');
my $url = $c->url_for('guest', token => $i->token)->to_abs;
my $expire = time2str($c->l('%A %d %B %Y at %T'), $i->expire_at);
my $expire = $c->get_date_lang()->time2str($c->l('%A %d %B %Y at %T'), $i->expire_at);
$c->mail(
from => $from,
to => $i->guest_mail,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment