Description
Tom Czarniecki opened SPR-1528 and commented
Spring Web framework has really good and extensible support for Locale resolution. However, in many internationalised applications one also requires to be able to resolve TimeZones, so that a remote user can be shown, for example, transaction logs in their local TimeZone, and not in the TimeZone of the server. You can always retrieve the user's timezone from the database at login and store it using a known key in the session or look it up whenever you need it. What I propose is really a set of extensible interfaces and strategy classes, based on Spring's current locale resolution mechanism, to allow a uniform approach to TimeZone resolution. Guess I have done this too many times for clients :-)
Attachments:
- client_timezone.zip (7.44 kB)
- FixedTimeZoneResolver.java (2.68 kB)
- TimeZoneInterceptor.java (3.14 kB)
- TimeZoneResolver.java (3.41 kB)
- TimeZoneUtils.java (2.90 kB)
Issue Links:
- JSP tags doesn't pick up JSTL-defined time zone at page level [SPR-15746] #20302 JSP tags doesn't pick up JSTL-defined time zone at page level
- CookieLocaleResolver is not RFC6265 compliant when setting a locale and time zone [SPR-16700] #21241 CookieLocaleResolver is not RFC6265 compliant when setting a locale and time zone
Referenced from: commits 44dee37, 7ed108e, 7b2ac6d, 4574528, c664010
5 votes, 7 watchers