Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » BUG in custom date field in eCommerce - or am I missing a system setting somewhere?

BUG in custom date field in eCommerce - or am I missing a system setting somewhere?

Hans Ravnsfjall
Hans Ravnsfjall
Reply

We have a solution where we have costum date fields, but it appears there is a bug in the system. If we eg. select the time 17.00 in the field, the output gets "transformed" to 05.00. Even tough it says 17.00 in the UI/backend.

Have tried outputting it with @TemplateTags(), and have also tried to format it in Razor, but no luck. Is this a bug in the system, or am I missing a "24hr" checkmark somewhere in the settings?

br. Hans


Replies

 
Nicolai Pedersen
Reply

Hi Hans

What are the regional settings on the website set to? Is it a region that has 24H clock?

BR Nicolai

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

Yes, it is set to Faroe Islands. Have also tried setting it to Denmark, but same result

 
Nicolai Pedersen
Reply

ok, send to QA for testing.

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Hans

Okay there is a problem here. Marked as bug #29957 

You could use another tag as workaround

< !--@ Ecom:Product:Field.testdatetime.LongTime -- >

or

< !-- @Ecom:Product:Field.testdatetime.GeneralDate -- >

Kind Regards
Dynamicweb
Kristian Kirkholt

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

@Kristian, this doesn´t work in razor. If I eg use @i.GetDate(Ecom:Product:Field.testdatetime.GeneralDate) i get the output 01-01-0001 00:00

unfortunately, It is not an option for me in this context to use an html template. Any workaround using razor?

br. Hans

 

You must be logged in to post in the forum