New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Добавление даты в кпк #1744
base: master
Are you sure you want to change the base?
Добавление даты в кпк #1744
Conversation
А к оффам с датой не получилось залезть? |
Обсудили же, что у офов нет Лора и поэтому даты тоже нет |
@@ -117,15 +118,15 @@ public PdaMenu() | |||
StationTimeButton.OnPressed += _ => | |||
{ | |||
var stationTime = _gameTiming.CurTime.Subtract(_gameTicker.RoundStartTimeSpan); | |||
_clipboard.SetText((stationTime.ToString("hh\\:mm\\:ss"))); | |||
_clipboard.SetText((stationTime.ToString("hh\\:mm\\:ss")) + " " + (DateTime.Now.ToUniversalTime() + DeltaUtc3).ToString("dd\\.MM\\.\\3\\0yy")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
последний метод выглядит как-то страшно, можно же просто:
.AddYears(1000).ToString("dd.MM.yyyy")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Мем в том что время в c# имеет int64 и соответственно просто ему не хватит значений чтобы добавить 1000 лет (overflow)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ehhh, хз, у меня в #1357 вроде все окей было
@@ -17,7 +17,7 @@ comp-pda-ui-footer = Карманный Персональный Компьют | |||
comp-pda-ui-station = Станция: [color=white]{ $station }[/color] | |||
comp-pda-ui-station-alert-level = Уровень угрозы: [color={ $color }]{ $level }[/color] | |||
comp-pda-ui-station-alert-level-instructions = Инструкции: [color=white]{ $instructions }[/color] | |||
comp-pda-ui-station-time = Продолжительность смены: [color=white]{ $time }[/color] | |||
comp-pda-ui-station-time = Продолжительность смены: [color=white]{ $time } { $date }[/color] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Мне всё еще не нравится решение отображать дату рядодм с временем относительно начала смены, как-то нелогично, как по мне
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А где?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Добавление даты в кпк
Описание PR
#1720
Добавление даты в кпк
Медиа
Проверки
Изменения
🆑 username