Menu

#2514 Local time disappearing for aircraft not using C++ clock instrument

None
Fixed
None
Low
2021-08-18
2021-01-12
No

Splitting out this issue from https://sourceforge.net/p/flightgear/codetickets/2499/ because they are not related.

Local time does not show up with MiG-15bis or Tu-144D:
https://sourceforge.net/p/flightgear/codetickets/_discuss/thread/c6e45671ef/2fa4/attachment/210110-125105.jpg

But is working with UFO and c172p:
https://sourceforge.net/p/flightgear/codetickets/_discuss/thread/c6e45671ef/215c/attachment/210110-125544.jpg

It turned out that this does not depend on locale or launcher.

Discussion

  • Anonymous

    Anonymous - 2021-01-12
    • summary: Local time not working with --launcher --> Local time disappearing for some aircraft
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,9 +1,9 @@
     Splitting out this issue from  https://sourceforge.net/p/flightgear/codetickets/2499/ because they are not related.
    
    -Local time does not show up with launcher:
    +Local time does not show up with MiG-15bis or Tu-144D:
     https://sourceforge.net/p/flightgear/codetickets/_discuss/thread/c6e45671ef/2fa4/attachment/210110-125105.jpg
    
    -But is working with command line:
    +But is working with UFO and c172p:
     https://sourceforge.net/p/flightgear/codetickets/_discuss/thread/c6e45671ef/215c/attachment/210110-125544.jpg
    
    -This does not seem to depend on locale.
    +It turned out that this does not depend on locale or launcher.
    
     
  • Anonymous

    Anonymous - 2021-01-12

    I found the cause: time dialog uses generic clock instrument /instrumentation/clock/local-short-string

    The fix would be to use some property that does not use aircraft-dependent code and not rely on instruments.

     

    Last edit: Anonymous 2021-01-12
  • legoboyvdlp

    legoboyvdlp - 2021-01-12

    +1 it should use /sim/time, as aircraft can override the instrumentation section to disable the clock.

     
    • Anonymous

      Anonymous - 2021-01-12

      The problem is that there is only /sim/time/gmt-string but no /sim/time/local-string

       
  • Anonymous

    Anonymous - 2021-01-12
    • summary: Local time disappearing for some aircraft --> Local time disappearing for aircraft not using C++ clock instrument
     
  • James Turner

    James Turner - 2021-01-13

    I don't think I've fully understood what is going on here: the time arguments the launcher sets are:
    --start-date-gmt (if the 'gmt' box is ticked)
    --start-date-sys (if it's not ticked)

    So I'd recommend to test without the launcher, passing those arguments, and see if you get the same bug? But, I could also use someone explaining a bit more what's going on :D

     
  • James Turner

    James Turner - 2021-01-13

    Ah wait, I read a bit more: this is no longer about the launcher at all ... ok.

    So, we need something similar to the generic clock instrument, but independant of it, for the time dialog to rely on : is that correct?

     
  • James Turner

    James Turner - 2021-01-13

    Adding a /sim/time/local-string should be easy, will take a look :)

     
  • James Turner

    James Turner - 2021-01-15
    • status: New --> Started
    • assigned_to: James Turner
     
  • James Turner

    James Turner - 2021-01-15

    Working on this now.

     
  • James Turner

    James Turner - 2021-01-15

    Fixed on 2020.3, will be included in 2020.3.6, and will also merge to next of course.

     
  • Anonymous

    Anonymous - 2021-01-15

    Thank you, it works here!

     
  • Anonymous

    Anonymous - 2021-08-18
    • status: Started --> Fixed
     

Log in to post a comment.

MongoDB Logo MongoDB