Format of timestamp returned by list() and max()

Discussion created by Beat on Nov 20, 2011
Latest reply on Nov 22, 2011 by Beat

Hi everybody

In a script I'm using the two functions list() and max() on a timestamp field of a related table . This works fine locally. On the server it doesn't. After some debugging I found the problem: 'list' lists the timestamps in a local format whereas max returns the timestamp in the american date and time format. Is this a bug or are there any good reasons for this strange behavior? Is there a simple solution or is it necessary to walk through the list and 'manually' format all entries?


Thanks for any suggestions.