mirror of https://github.com/erickguan/ffi-icu.git
Update lib/ffi-icu/time_formatting.rb
Co-authored-by: Igor Justino <697824+dadah89@users.noreply.github.com>
This commit is contained in:
parent
31c1403f8d
commit
2652ed491b
|
@ -83,9 +83,8 @@ module ICU
|
|||
end
|
||||
|
||||
if skeleton
|
||||
unless time_style == :pattern && date_style == :pattern
|
||||
raise '`time_style` and `date_style` must be :pattern type when using a skeleton pattern'
|
||||
end
|
||||
date_style = :pattern
|
||||
time_style = :pattern
|
||||
|
||||
pattern_len, pattern_ptr = skeleton_format(skeleton, locale)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue