mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 22:17:40 +08:00
fix(ion-datetime): keep the model value consistently an ISO string (#15907)
This commit is contained in:
@ -356,7 +356,7 @@ export function convertDataToISO(data: DatetimeData): string {
|
||||
|
||||
} else {
|
||||
// YYYY-MM-DDTHH:mm:SS+/-HH:mm
|
||||
rtn += (data.tzOffset > 0 ? '+' : '-') + twoDigit(Math.floor(data.tzOffset / 60)) + ':' + twoDigit(data.tzOffset % 60);
|
||||
rtn += (data.tzOffset > 0 ? '+' : '-') + twoDigit(Math.floor(Math.abs(data.tzOffset / 60))) + ':' + twoDigit(data.tzOffset % 60);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user