Adding Correct Timestamp to Betaflight Blackbox Logs

by Oscar

It’s annoying that Blackbox logs have random timestamps. Here’s how to add real date and time stamps to your blackbox logs in 1 simple step.

Some of the links on this page are affiliate links. I receive a commission (at no extra cost to you) if you make a purchase after clicking on one of these affiliate links. This helps support the free content for the community on this website. Please read our Affiliate Link Policy for more information.

If you have a GPS module connected to the FC, get a lock before starting your blackbox log, the correct timestamp will be used. However not everyone uses a GPS and this is how you do it.

All you need is a transmitter loaded with OpenTX.

Most radios have a Real Time Clock, and with a LUA script we can send the time to Betaflight which will be added to your blackbox logs.

Go to the Global Functions in your radio, and enter this line: GF1 ON Lua Script bfbkgd

“bfbkgd” is a lua script that runs in the background, it updates Betaflight with the current date and time from the radio. So make sure you set the correct date and time in your radio to make this work.

That’s it.

Leave a Comment

By using this form, you agree with the storage and handling of your data by this website. Note that all comments are held for moderation before appearing.

6 comments

Tim 11th July 2024 - 10:49 am

Is the script already loaded, and we merely have to run it? Or is there a script we need to load first?

Reply
Michael 1st April 2024 - 3:49 pm

Dear Oscar, my time stamp keeps staying at “Log start datetime:0000-01-01T00:00:00.000+00:00” even after doing exactly what you described. I am using a Jumper T Pro and BF 4.4, any Idea why this keeps happening?

Reply
Oscar 2nd April 2024 - 3:50 pm

You have a GPS connected? and it has locked before you start logging?

Reply
John 15th December 2022 - 1:24 am

Any idea how to do this in EdgeTx?

Reply
David Devilliers 2nd May 2022 - 7:27 am

Hi,
Great info. Is there current update info.
I need to have real-time dates tamp on mini dvr recordings.

Difficult to achieve….

Thnx

Reply
Steve FPVCrash 11th November 2021 - 1:41 pm

Is there any way to get the date and time updated, even manually for the FPV dvrs, so the videos are not dated in 2018?

Reply