I am working on the creation of a content type that is anonymous, yet I am posting other information that is useful in it's place.

I found that in Themes>global settings I can turn off 'Submitted by Username on Date'. It eliminates the User's Name, but now I want to restore the date info.

Using the 'computed field' module with CCK, I am able to put a time and date up using 'date()', but it is displaying the time of the server, which appears to be several timezones away from me.
Can anyone tell me how to create a timestamp that is correct for each viewer? I'm looking for a PHP code snippet or something that pulls the info from Drupal.

Comments

WildZBill’s picture

I have been able to get the info using: date(format,$node->created).
However, this still just shows local time for the server.
I guess that I need to convert it somehow by finding the time zone of the user and adding or subtracting some number from the datestamp. I will eventually figure it out, any clues would be helpful.