Class TimeZoneResolverDefault
java.lang.Object
org.spincast.plugins.dateformatter.TimeZoneResolverDefault
- All Implemented Interfaces:
TimeZoneResolver
-
Constructor Summary
ConstructorDescriptionTimeZoneResolverDefault
(SpincastConfig spincastConfig, com.google.inject.Provider<RequestContext<?>> requestContextProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.inject.Provider<RequestContext<?>>
protected SpincastConfig
The best TimeZone to use.
-
Constructor Details
-
TimeZoneResolverDefault
@Inject public TimeZoneResolverDefault(SpincastConfig spincastConfig, com.google.inject.Provider<RequestContext<?>> requestContextProvider)
-
-
Method Details
-
getSpincastConfig
-
getRequestContextProvider
-
getTimeZoneToUse
Description copied from interface:TimeZoneResolver
The best TimeZone to use.- Specified by:
getTimeZoneToUse
in interfaceTimeZoneResolver
- Returns:
- The best TimeZone to use. If none is found, returns
the default TimeZone, as defined by
SpincastConfig#getDefaultTimeZone()
-