Commit 8fd1f5a
committed
Fix subscriber date display for Go zero time values
- Add formatDate function to handle 0001-01-01T00:00:00Z (Go zero time)
- Display 'Not available' for zero time values instead of raw timestamp
- Format valid dates as readable format (e.g., 'January 15, 2024')
- Update subscription status logic to ignore zero time values
- Prevents confusing display of ancient dates from backend1 parent 46d9471 commit 8fd1f5a
1 file changed
Lines changed: 21 additions & 2 deletions
File tree
- src/components/relay-dashboard/paid-subscribers/SubscriberDetailModal
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
78 | 97 | | |
79 | 98 | | |
80 | 99 | | |
| |||
146 | 165 | | |
147 | 166 | | |
148 | 167 | | |
149 | | - | |
| 168 | + | |
150 | 169 | | |
151 | 170 | | |
152 | 171 | | |
| |||
0 commit comments