cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




Post

Michael - Guest

2:46 pm - March 22, 2008

  • cforms version: 8.02
  • Your Wordpress version: 2.3.3

date formats in cforms are not the same withing wp.

i user german formated date and it works for the blog posts, but in the cform mails the dates (months names) are english

where can i look so change this?

what can it be? php config? apache config? server mail config?

that all are topics i'm not familiar with at this moment
any hint can help me save a much time


thanks...

Oliver - Admin

3:14 pm - March 22, 2008

posts 3908

Is your blog localized (via wp-config.php)?

Here is the cforms date function:

mysql2date(get_option('date_format'), current_time('mysql'));

which does take your blogs' settings into consideration. However, due to a known (and still not fixed wordpress bug) the localization doesn't work in Ajax mode. So if this is a show stopper for you, your only options are

  1. disabling Ajax support for the form
  2. using a different form mailer plugin

Michael - Guest

2:41 am - March 24, 2008

echo mysql2date(get_option('date_format'), current_time('mysql'));

return me "24. März 2008

"

in the e-mail it's in english
var dp;
function dpinit(){
dp = new CalendarPopup('datepicker');
dp.setTodayText('Today');
dp.showYearNavigation();
dp.setMonthNames("January","February","March","April","May","June","July","August","September","October","November","December");
dp.setDayHeaders("S","M","T","W","T","F","S");
dp.setWeekStartDay(0);}

Michael - Guest

2:43 am - March 24, 2008

^ strange - in the editor i didn't seen this, i dont entered this anyway

Oliver - Admin

8:01 am - March 24, 2008

posts 3908

Michael, the above "dp" related settings only have an impact on the datepicker field. By default they're English but of course you can provide your German translations (Global Settings -> Date Picker).

As for for the other "confirmation email / false language" issue, I have great news:

It will be fixed in v8.1

Let me know if you'd like a (beta) copy today - it is considered stable.

Michael - Guest

10:44 am - March 26, 2008

yes please

Michael - Guest

5:48 pm - March 26, 2008

hi,

with ajax disabled the german date formats work.. i haven't testet this till now

but i get "März" :-)

i this server missconfig?

Add a New Topic Reply to Post


Reply to Topic: date formats
PLEASE READ THE FAQs FIRST! THANK YOU.

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 5 + 6        (Required)

Topic Reply:


 
© Simple:Press Forum - Version 3.1.3 (Build 356)