Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Place your Spring DSL code here
- beans = {
- // from http://stackoverflow.com/questions/1569446/grails-how-to-change-the-current-locale
- localeResolver(org.springframework.web.servlet.i18n.SessionLocaleResolver) {
- defaultLocale = new Locale("en","IN")
- java.util.Locale.setDefault(defaultLocale)
- println "configure spring/resources.groovy defaultLocale $defaultLocale"
- defaultTimeZone = TimeZone.getTimeZone("Asia/Kolkata")
- java.util.TimeZone.setDefault(defaultTimeZone)
- println "configure spring/resources.groovy defaultTimeZone $defaultTimeZone"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement