date - Displaying the timezone properly in XSLT -


was using below tag displaying timezone working fine until when daylight saving has happened , our server in uk displaying time 01/04/2015 03:43:00 pm + 0100, have timezone displayed, please advice.

tag used previously:

date:format-date(date:date-time(), 'dd/mm/yyyy hh:mm:ss z') 

regards
arvind

if "properly" mean want displayed "bst" (for british summer time) there isn't enough information in date/time value - time-zone offset of +1 occurs in many different timezones near greenwich meridian.

you're using exslt library formatting dates , times. based on java's simpledateformat class, try luck timezone designator z instead of z.

alternatively, if you've got access xslt 2.0, can use format-datetime() function. suffers same problem (the datetime value stores offset, doesn't tell name of timezone). can give processor clue setting 5th argument of format-datetime() "europe/london", in case might able work out.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -