On Sunday 19 January 2020 00:03:36 Namjae Jeon wrote: > + case Opt_time_offset: > + /* > + * GMT+-12 zones may have DST corrections so at least > + * 13 hours difference is needed. Make the limit 24 > + * just in case someone invents something unusual. > + */ > + if (result.int_32 < -24 * 60 || result.int_32 > 24 * 60) > + return -EINVAL; > + opts->time_offset = result.int_32; > + break; "13 hours difference is needed" This is not truth :-) Every traveller knows that Kiribati has only standard time and is in GMT+14 time zone. But limit ±24 is enough, at least for now. -- Pali Rohár pali.rohar@xxxxxxxxx
Attachment:
signature.asc
Description: PGP signature