We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5787e98 commit a01e834Copy full SHA for a01e834
1 file changed
src/shim.rs
@@ -112,10 +112,8 @@ unsafe fn localtime_js(t: c_time_t, tm: *mut tm) {
112
let summer_offset =
113
Date::new_with_year_month_day(date.get_full_year(), 6, 1).get_timezone_offset();
114
let winter_offset = start.get_timezone_offset();
115
- (*tm).tm_isdst = i32::from(
116
- summer_offset != winter_offset
117
- && tz_offset == winter_offset.min(summer_offset),
118
- );
+ (*tm).tm_isdst =
+ i32::from(summer_offset != winter_offset && tz_offset == winter_offset.min(summer_offset));
119
120
(*tm).tm_gmtoff = -(tz_offset * 60.0) as _;
121
}
0 commit comments