* [pve-devel] [PATCH pve_flutter_frontend] fix: ui: token expiry showing unix epoch time
@ 2025-12-30 15:48 Shan Shaji
2026-03-18 9:07 ` Shan Shaji
0 siblings, 1 reply; 2+ messages in thread
From: Shan Shaji @ 2025-12-30 15:48 UTC (permalink / raw)
To: pve-devel
When the token expiry is set to 'never', the API returns 0 for the
expire property. After deserialization, this property was being
populated with the Unix epoch time. To fix this, added an additional
check and updated the label to align with our web UI.
Signed-off-by: Shan Shaji <s.shaji@proxmox.com>
---
lib/pages/main_layout_slim.dart | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/pages/main_layout_slim.dart b/lib/pages/main_layout_slim.dart
index 0aca666..4229ef4 100644
--- a/lib/pages/main_layout_slim.dart
+++ b/lib/pages/main_layout_slim.dart
@@ -940,8 +940,9 @@ class MobileAccessManagement extends StatelessWidget {
itemCount: aState.tokens.length,
itemBuilder: (context, index) {
final token = aState.tokens[index];
- var expireDate = 'infinite';
- if (token.expire != null) {
+ var expireDate = 'never';
+ if (token.expire != null &&
+ token.expire?.millisecondsSinceEpoch != 0) {
expireDate = DateFormat.yMd().format(token.expire!);
}
--
2.47.3
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH pve_flutter_frontend] fix: ui: token expiry showing unix epoch time
2025-12-30 15:48 [pve-devel] [PATCH pve_flutter_frontend] fix: ui: token expiry showing unix epoch time Shan Shaji
@ 2026-03-18 9:07 ` Shan Shaji
0 siblings, 0 replies; 2+ messages in thread
From: Shan Shaji @ 2026-03-18 9:07 UTC (permalink / raw)
To: Shan Shaji, pve-devel
Ping, This still applies.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-18 9:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-30 15:48 [pve-devel] [PATCH pve_flutter_frontend] fix: ui: token expiry showing unix epoch time Shan Shaji
2026-03-18 9:07 ` Shan Shaji
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.