Update lib/ffi-icu/time_formatting.rb

Co-authored-by: Igor Justino <697824+dadah89@users.noreply.github.com>
This commit is contained in:
Damian Nelson 2021-08-12 21:02:09 -07:00 committed by GitHub
parent 31c1403f8d
commit 2652ed491b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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