Hi Jakob, Have you tried using the all-parameter version of format-date(), i.e.
format-date(document_date, '[D] [MNn,3-3] [Y]', 'en', 'ISO', 'fr') assuming English language, ISO calendar and country France? Just wondering if that gives the same result? I wonder what the MarkLogic defaults for those parameters are... Cheers, -Steve On 23/03/2011 22:14, Jakob Fix wrote: > Hi, I have a weird problem which is probably only peripherally > MarkLogic-related ... > > we store dates in MarkLogic in XML documents like this: > <document_date>2011-03-01</document_date> > > when I display any date (yes, I think, it's any date) and use > format-date() with a picture string like this: > format-date(document_date, '[D] [MNn,3-3] [Y]') > > it will always show the previous day. This became particularly > apparent for the 1st of January of a year where suddenly I would see > 31st of December of the previous year. I have the suspicion it's > something to do with timezones (and really nothing with MarkLogic), > but I'm not sure how to fix this. > > thanks for any help you may be able to provide, > Jakob. > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
