The International Simutrans Forum

 

Author Topic: Relative time is shown in am/pm format  (Read 302 times)

0 Members and 1 Guest are viewing this topic.

Offline hreintke

  • *
  • Posts: 186
Relative time is shown in am/pm format
« on: August 15, 2021, 03:07:27 PM »
Has been a while since I played Simutrans, First time I see the waiting time in days, hours, minutes.

The issue is :
There is always an am/pm shown in waiting time.
When there is a waiting time of more than 12 hours, the difference is shows as hours -12  "pm" instead.

I think in "char const *difftick_to_string( sint32 ticks, bool round_to_quaters )"
should return the same format, days, hours, minutes  independent of "env_t::show_month" setting.

Online prissi

  • Developer
  • Administrator
  • *
  • Posts: 10905
  • Languages: De,EN,JP
Re: Relative time is shown in am/pm format
« Reply #1 on: August 16, 2021, 07:52:41 AM »
I see. Indeed, this seems to require some different handling. Check r10013.

Offline hreintke

  • *
  • Posts: 186
Re: Relative time is shown in am/pm format
« Reply #2 on: August 16, 2021, 11:07:16 AM »
There is a leftover  "{ "  on line 295 of simintr.cc.

Removing that makes it work OK

Online prissi

  • Developer
  • Administrator
  • *
  • Posts: 10905
  • Languages: De,EN,JP
Re: Relative time is shown in am/pm format
« Reply #3 on: August 16, 2021, 11:23:54 AM »
Sorry, commited before saving ...