I started a site on one server with PHP 5.2.8; installed and configured a site them moved it to a production Server with PHP 5.1.6.

Both use MySQL 5.0.77.

The production site only displays the current date in any date cck date field. In a view or by itself. If you edit the record the edit screen correctly shows the date you set. The database contains the right value.

I've tried to change the type of the cck date filed (date, datestamp, datetime). I've tried clearing caches and remaking the fields but to no avail. All displays of the date field show today.

Core Drupal Systems that show the date do so correctly (such as time stamps on errors).

Does anyone have an idea of why this is?

CommentFileSizeAuthor
#16 dev version.JPG41.08 KBarlinsandbulte

Comments

kingmanic’s picture

Title: Date CCK field displays todays date although it stores the correct date » Date CCK field only displays todays date although it stores the correct date
kingmanic’s picture

Title: Date CCK field only displays todays date although it stores the correct date » Date CCK field only displays todays date although it stores the specified correct date
jshawcfa’s picture

I see this same error. I also have 6.x-2.7

carnao’s picture

I have the same problem. Date versione 6.x-2.7, drupal 6.20

jshawcfa’s picture

Replacing 6.x-2.7 with 6.x-2.7-dev appears to fix the problem.

shanefjordan’s picture

I have the same issue as this.

CarbonPig’s picture

same issue

neorg’s picture

Same issue here.

Why isn't there any action on this bug?
This is not what I aspect from a important module as this.

Is the developer needs more info please say it.

edit: BTW Perl version info
# php -v
PHP 5.1.6 (cli) (built: Nov 29 2010 16:47:37)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

mboc’s picture

Replacing the module with th dev version solved the date problem but not the time problem, the minutes are correctly saved but incorreclty shown. I'm not sure if it's the minutes of the server time that are displaying.
any help apreciated!!

mboc’s picture

Sorry! my mistake! I had the wrong php format I was using d/m/Y H:m instead of d/m/Y H:i .

arlinsandbulte’s picture

Status: Active » Fixed

Fixed according to #5, #9, & #10...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jitenm’s picture

Version: 6.x-2.7 » 7.x-2.0-alpha4
Status: Closed (fixed) » Active

I'm experiencing the same in 7.x-2.0-alpha4 and latest 7.x-2.x dev, any more details on the above and how it was resolved? Thanks in advance.

RumpledElf’s picture

Version: 7.x-2.0-alpha4 » 6.x-2.7
willshaman’s picture

Component: Date CCK Field » Code

#5, #9 and #10 all talk about 6.x-2.7-dev, but I don't see the "dev" version available for download anywhere. The straight 6.x-2.7 version displays the same problem as described, i.e. correct date stored on database but today's date displayed. I read somewhere else this was because of my version of PHP. My ISP only provides PHP 5.1.6, which 6.x-2.7 seems not to work with.

Unfortunately, ISP won't let me update PHP, so I'm using Date 6.x-2.4 (together with Calendar 6.x-2.4). However, Date 6.x-2.4 also pulls the same trick: selected date stored; today's date displayed. Any clues, please?

Thanks in advance.

arlinsandbulte’s picture

StatusFileSize
new41.08 KB

@willshaman:
"dev" version can be downloaded right from the project page at http://drupal.org/project/date
dev version

Also, according to our info on the project page: "PHP 4, 5.0, & 5.1 are no longer actively supported. If you want dates to work correctly you need to use PHP 5.2 or higher."
If your web host provider cannot/will not update PHP, I would suggest looking for a new provider.

arlinsandbulte’s picture

Status: Active » Closed (fixed)

@jitenm (#13):
Let's leave this issue closed for the 6.x-2.x version of date. If you are having this issue in 7.x-2.x, please create another issue and detail how the problem can be reproduced there.
Include your PHP version.

willshaman’s picture

Ah, thanks arlinsandbulte - I've now got it and I'll give it a go. Extra thanks and a smiley for being so prompt and drawing pictures and everything! :0))

Will