normalizeSecondsFromController function
Returns a normalized date time from the controller based on the given number representing the seconds since epoch (from the controller POV).
Unlike dateFromEpochSeconds, this method displays the date from the user's timezone, not from the controller's timezone.
Implementation
DateTime? normalizeSecondsFromController(
num? secondsSinceEpoch,
DateTime? controllerTime,
DateTime currentTime,
) {
return normalizeDateFromController(
dateFromEpochSeconds(secondsSinceEpoch),
controllerTime,
currentTime,
);
}