Orchard.Core.Shapes.DateTimeShapes is constructed exactly once per AppDomain lifetime

Topics: Core, Localization
Mar 5, 2014 at 2:26 PM
I thought "IDependency" objects automatically are per-request?

DateTimeShapes definitelly has to be per-request since it uses GetContext() -- so if the very first request happens under German culture then "tt" will never get replaced with "am" or "pm" even for requests using English culture.

(Orchard 1.7.2)
Developer
Mar 13, 2014 at 1:13 AM
This may be the following bug: https://orchard.codeplex.com/workitem/20314