83 Posts
CAF St Brieuc
7 years ago
3
Topic

hello, 

joomla 3.5.1, seblod 3.8.1

I have a problem with the email field. 

I have a field calendar "date_reunion" on my form.

 when I put it in the editor field #date_reunion email# it's time UTC I therefore with 2 hours less. 

How do I apply the typo on this field in the editor to send a mail

thanks

best regards

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
2
Level 1

This is a bug, I made a pull request to fix it, you can help by testing it (just replace main calendar.php file with the one from pull)

https://github.com/Octopoos/SEBLOD/pull/199

83 Posts
CAF St Brieuc
7 years ago
0
Level 2

Hi Klass, 

I'll try your hack later on my test site, there waiting I added a field in which I store exactly what I want:

in the field before store : 

$datedebcorrige = $ fields [ 'document_date_reunion'] -> value;
$datedebcorrige = date ("j m Y - G \ hi", strtotime($datedebcorrige." +2 hours"));
$config[ 'storages'] [ '#__ cck_store_form_document'] [ 'document_date_reunion_format'] = $datedebcorrige;

and I put this field in the email editor.

I come back to you as soon as I tested your hack

thanks, best regards

83 Posts
CAF St Brieuc
7 years ago
0
Level 2

Hi Klas

I tested the calendar.php file.
In the email the format is correct, but it saves in the database date 0000-00-00 0:00:00 !!
Maybe I wrong somewhere? I just replaced the calendar.php file.

best regards

Get a Book for SEBLOD