diff options
Diffstat (limited to 'date_locale.rb')
-rw-r--r-- | date_locale.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/date_locale.rb b/date_locale.rb index c6cc43a..e3f1b71 100644 --- a/date_locale.rb +++ b/date_locale.rb @@ -183,7 +183,7 @@ module Date_locale #
#What's the better solution? Check for locale, or check for the method :language?
#
- if defined?( Locale ) and lang.is_a?(Locale::Object)
+ if defined?( Locale ) and lang.is_a?(Locale::TagList)
#~ if lang.respond_to?(:language)
Date_locale.set_target_encoding( lang.charset )
return lang.language.to_sym
|