Skip to content

Commit 7ebd3eb

Browse files
authored
Merge pull request #1926 from OpenC3/bug/packet-date-formatting
Fix case sensitivity for timestamp formatting
2 parents f63717b + c1ca254 commit 7ebd3eb

File tree

1 file changed

+2
-2
lines changed
  • openc3-cosmos-init/plugins/packages/openc3-vue-common/src/widgets

1 file changed

+2
-2
lines changed

openc3-cosmos-init/plugins/packages/openc3-vue-common/src/widgets/VWidget.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ export default {
246246
if (
247247
value &&
248248
this.valueId &&
249-
(this.valueId.includes('PACKET_TIMEFORMATTED') ||
250-
this.valueId.includes('RECEIVED_TIMEFORMATTED'))
249+
(this.valueId.toUpperCase().includes('PACKET_TIMEFORMATTED') ||
250+
this.valueId.toUpperCase().includes('RECEIVED_TIMEFORMATTED'))
251251
) {
252252
// Our dates have / rather than - which results in an invalid date on old browsers
253253
// when they call new Date(value)

0 commit comments

Comments
 (0)