xoops forums

jcweb

Quite a regular
Posted on: 2012/5/1 18:06
jcweb
jcweb (Show more)
Quite a regular
Posts: 253
Since: 2005/4/25
#1

Strange problems with email user

Hi friends, i need help before i´m going frustrated ...

XOOPS 2.5.5 and here i will send email to users in the admin section. See the attached image what happend the the date picker (calendar). I think its a problem of the lang files, but i cannot find the error. If i switch to the english langauge all is ok, where should i search for (i which file)?

Thanks in andvance.
Andy

Resized Image

jcweb

Quite a regular
Posted on: 2012/5/1 23:48
jcweb
jcweb (Show more)
Quite a regular
Posts: 253
Since: 2005/4/25
#2

Re: Strange problems with email user

Hi friends
After hours i found a solution, maybe quick, wrong or not but it works for the moment and i can go to bed.

Before, the problem, we need a german date (day.month.year) and not the american/english date (year/month/day). New in the lang file, here calendar.php is the define:

define("_CAL_FORMAT","Y-m-d");


In the german lang should it be:

define("_CAL_FORMAT","d.m.Y");


But this will not work, you see it in the screenshot, first posting. I found in the file /class/xoopsform/formtextdateselect.php in line 51:
$jstime formatTimestamp($ele_value_CAL_FORMAT);


For my understanding and in former XOOPs-Version it was:
$jstime formatTimestamp($ele_value'F j Y, H:i:s');


That will work for this time. Please help me out, i dont know where to find or search for this problem.

Greets Andy

guspel

Just popping in
Posted on: 2012/5/15 3:08
guspel
guspel (Show more)
Just popping in
Posts: 11
Since: 2012/2/25
#3

Re: Strange problems with email user

Hi
In /class/xoopsform/formtextdateselect.php replace _CAL_FORMAT for _SHORTDATESTRING

In Spanish had the same problem and I solved this way.
I hope you will be useful

Bye