# Red Lion Messed up Big time

**URL:** <https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757>\
**Category:** Ignition\
**Created:** [March 22, 2024, 4:35pm UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757 "2024-03-22T16:35:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmahaf](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaf/32/23492_2.png) [@tmahaf](https://forum.inductiveautomation.com/u/tmahaf)\
**Post date:** [March 22, 2024, 4:35pm UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/1 "2024-03-22T16:35:54Z")

</div>

Anyone know the conversion to get from the timestamps that are now coming in as Jan 1 1997 to March 22, 2024?

I'm guessing its just seconds between the two dates?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 22, 2024, 4:39pm UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/2 "2024-03-22T16:39:58Z")

</div>

A little more detail would be nice.

---

<div class="post-metadata">

**Author:** ![tmahaf](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaf/32/23492_2.png) [@tmahaf](https://forum.inductiveautomation.com/u/tmahaf)\
**Post date:** [March 22, 2024, 4:41pm UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/3 "2024-03-22T16:41:50Z")

</div>

Everyone who is using red lions is getting timestamps Jan 1 1997 for today, as of last night.

Here's the info I have:

Crimson’s data and event logs will show incorrect times and possibly exhibit other failures from 03/22/24 onwards.

Crimson tracks time internally using a two methods: The first is to count the number of seconds since 01/01/1997, and the second is the count the number of 200ms ticks since that same epoch. The latter clock is used for data logging and other similar purposes where better than one second resolution is required. Both values are stored in 32-bit numbers, which works fine for the 1 second clock, but for the 200ms clock creates a wrap-around after slightly more than 27 years. To be precise, the 200ms clock will wrap-around at 01:17:39 on 03/22/24. It appears that our Australian customers have already started to encounter this problem, and we can expect other customers to see the same tomorrow morning. The symptoms will be incorrect data in data logs, and possibly crashes or other undefined behavior when viewing historical data on the HMI.  
There is no work-around, save setting the clock back a year and accepting the incorrect but at least coherent dates.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 22, 2024, 4:43pm UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/4 "2024-03-22T16:43:38Z")

</div>

Holy shit 😆

---

<div class="post-metadata">

**Author:** ![tmahaf](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaf/32/23492_2.png) [@tmahaf](https://forum.inductiveautomation.com/u/tmahaf)\
**Post date:** [March 22, 2024, 4:49pm UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/5 "2024-03-22T16:49:30Z")

</div>

Right now it looks like the delta seconds to convert back to March 22 is

858993453

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 22, 2024, 4:59pm UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/6 "2024-03-22T16:59:16Z")

</div>

Hmm, I got 858993459 seconds.

```auto
jshell> import java.time.*

jshell> var i1 = Instant.parse("1997-01-01T00:00:00Z")
i1 ==> 1997-01-01T00:00:00Z

jshell> var i2 = i1.plusMillis(0xFFFFFFFFL * 200L)
i2 ==> 2024-03-22T01:17:39Z

jshell> Duration.between(i1, i2).toSeconds()
$4 ==> 858993459

```

---

<div class="post-metadata">

**Author:** ![tmahaf](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaf/32/23492_2.png) [@tmahaf](https://forum.inductiveautomation.com/u/tmahaf)\
**Post date:** [March 22, 2024, 5:03pm UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/7 "2024-03-22T17:03:46Z")

</div>

> [@Kevin.Herron](#):
>
> 858993459

Close enough for me.  
Now to figure out how to merge the data into our DataPartition tables with the correct tag IDs and adjusted Millis

Yay for Friday.

---

<div class="post-metadata">

**Author:** ![tmahaf](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaf/32/23492_2.png) [@tmahaf](https://forum.inductiveautomation.com/u/tmahaf)\
**Post date:** [March 22, 2024, 5:17pm UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/8 "2024-03-22T17:17:58Z")

</div>

It looks like Ignition has already made a few new tag IDs for the 1997 data, I imagine that is because timestamps from the red lion are backtracking some?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/e/4e83b4db5492a7e23b0dc70fc206794223515753.png)

---

<div class="post-metadata">

**Author:** ![jcoffman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jcoffman/32/6429_2.png) [@jcoffman](https://forum.inductiveautomation.com/u/jcoffman)\
**Post date:** [March 22, 2024, 5:25pm UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/9 "2024-03-22T17:25:53Z")

</div>

Looks like they have a notice posted about this at least: [Crimson® | Red Lion](https://www.redlion.net/support/software-firmware/red-lion-software/crimson)

> Devices running Crimson® 2.0, 3.0, 3.1 and 3.2 will display inaccurate timestamps on data, alarm, and event logs on and about March 22, 2024. Additionally, the device may cease to operate or automatically restart at the initial time of failure.
> 
> Operation can be restored by power-cycling the unit, and if a GMC message is displayed on an HMI, clearing the error via the touchscreen or keyboard.
> 
> Once the device is operable, communications should be restored, but incorrect dates will continue to be displayed. Viewing the data logs via the trend viewer may result in further restarts or failures.
> 
> Red Lion is urgently working on a fix. We will notify you when the update is available. In the meantime, if you need further assistance or information, please contact Red Lion support via the methods listed below.

---

<div class="post-metadata">

**Author:** ![tmahaf](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaf/32/23492_2.png) [@tmahaf](https://forum.inductiveautomation.com/u/tmahaf)\
**Post date:** [March 22, 2024, 5:29pm UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/10 "2024-03-22T17:29:03Z")

</div>

Is there any way for Ignition to use its own timestamp on the MQTT instead of Red Lion?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 22, 2024, 6:26pm UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/11 "2024-03-22T18:26:29Z")

</div>

You'll have to check with Cirrus Link, I'm not sure. I know it's not possible with OPC tags.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [March 23, 2024, 7:47am UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/12 "2024-03-23T07:47:55Z")

</div>

Really, in 2024 they're still being bitten on the ass by overflows on timestamps ?

---

<div class="post-metadata">

**Author:** ![tmahaf](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaf/32/23492_2.png) [@tmahaf](https://forum.inductiveautomation.com/u/tmahaf)\
**Post date:** [March 23, 2024, 2:36pm UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/13 "2024-03-23T14:36:07Z")

</div>

Indeed.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 23, 2024, 3:12pm UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/14 "2024-03-23T15:12:01Z")

</div>

The real shit show will happen in 2038 (`2038-01-19T03:14:07Z`).

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 23, 2024, 3:14pm UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/15 "2024-03-23T15:14:36Z")

</div>

Please, Kevin, can we maintain some decorum on the forum!

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [March 25, 2024, 7:03pm UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/16 "2024-03-25T19:03:10Z")

</div>

Something similar happened to Microsoft 2022-01-01 if you recall [Microsoft confirms Exchange Year 2022 problem | Hacker News](https://news.ycombinator.com/item?id=29771592)

> Summary of the bug: Exchange tried to store "2201010001" (i.e. date time '22-01-01 00:00) in a 32-bit signed int, but INT\_MAX is 2147483647 so the result is a negative number.

---

<div class="post-metadata">

**Author:** ![kammerman](https://avatars.discourse-cdn.com/v4/letter/k/8e8cbc/32.png) [@kammerman](https://forum.inductiveautomation.com/u/kammerman)\
**Post date:** [March 27, 2024, 12:13pm UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/17 "2024-03-27T12:13:55Z")

</div>

Red Lion has just issued updated firmware for their devices which will correct the error and return timestamps to current dates.

---

<div class="post-metadata">

**Author:** ![Colin\_Shackleford](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@Colin\_Shackleford](https://forum.inductiveautomation.com/u/Colin_Shackleford)\
**Post date:** [April 5, 2024, 4:36am UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/18 "2024-04-05T04:36:41Z")

</div>

Hi all. We lost comms to 79 Red Lion units which shut down our SCADA system for our wastewater utility. It took 36 hours to repair the damage and get us back on line. It cost us $6k in support contractors. Is anyone looking to claim costs from Red Lion?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 5, 2024, 12:03pm UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/19 "2024-04-05T12:03:21Z")

</div>

> [@Colin\_Shackleford](#):
>
> Is anyone looking to claim costs from Red Lion?

If anyone is, I doubt IA would appreciate it being discussed here on their forum.

---

<div class="post-metadata">

**Author:** ![Colin\_Shackleford](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@Colin\_Shackleford](https://forum.inductiveautomation.com/u/Colin_Shackleford)\
**Post date:** [April 8, 2024, 12:30am UTC](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757/20 "2024-04-08T00:30:54Z")

</div>

OK, where would you suggest?

[Next page](https://forum.inductiveautomation.com/t/red-lion-messed-up-big-time/87757.md?page=2)
