hello,
I am using the Webform Module on my Drupal 6.12 site for Users to participate in different plans. One Plan is for Catering, one for Cleaning and so on
The Submission page has following values
Name
Date (the Date where the User want to participate)

After submission the user gets a mail with the values he entered.
In this mail there is something wrong with the date.
The date in the mail is always "31 December 1969" regardless the date the user entered.
However, after checking the database it shows that the date stored is exactly the date the user entered.
I am also using the "Webform Report" Module which shows the results of my webform. There the date displayed is the same the user entered (which of course is obviously, as the webform report module only reads from database)

Are there any ideas what may cause this bug?
kind regards,
Jakob

CommentFileSizeAuthor
#2 date .inc_.txt16 KBaichfeldjugend

Comments

quicksketch’s picture

Priority: Critical » Normal

Have you installed the DateAPI module? There's a similar sounding report in #476354: DateAPI prevents date component proper ordering.

aichfeldjugend’s picture

StatusFileSize
new16 KB

hello again,

thanks for the answer
No, I don't have the Date API Module installed

But I have made some changes to the code of an file of the module
Changed file: /components/date.inc
Changed line: 253 - 258

 /* Bemerkung: Ausgeklammert von Jakob zur besseren Darstellung des Datums (this text is to explain the changes)
function _webform_submit_date(&$data, $component) {
  // Webform stores dates in month/day/year rows.
  // Ensure consistency when using international date formats.
  $data = array($data['month'], $data['day'], $data['year']);
}*/

This change allows me to use the german date format not the american.
Could this be the possible error?
Attached is the changed file

quicksketch’s picture

Category: bug » support
Status: Active » Closed (fixed)

Support for customized code is not provided. From the changes you've made, it's almost certainly corrupted the data that Webform saves and will cause unexpected behavior.