我正在使用XslCompiledTransform
對象並嘗試解析DateTime
對象。它的工作原理是,但只顯示GMT日期。 當調試代碼,該對象具有正確的值(GMT + 2)XslCompiledTransform與XSLT 1.0毫秒:format-time()時區
我在XSLT使用該:
ms:format-time(order/@orderDate, 'H:m', 'NL-nl')
輸出具有與正確值的兩小時的時差。 這可以使用XSLT 1.0和默認的.Net 4框架方法來解決。 (C#)
編輯:可以這樣無需添加代碼的XSLT https://groups.google.com/d/topic/microsoft.public.xsl/1mPHhh6F62o/discussion
EDIT2解決:似乎越來越多的人在XSLT 1格式化時間問題,不同的時區:http://forums.tizag.com/showthread.php?t=17429