Skip to content

Commit

Permalink
Date time add
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinary1 committed Jun 8, 2024
1 parent 9d02db2 commit 5ee5426
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions Content.Client/PDA/PdaMenu.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ 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.UtcNow.AddYears(1000).ToString("dd.MM.yyyy")));
};

StationAlertLevelInstructionsButton.OnPressed += _ =>
Expand Down Expand Up @@ -174,7 +174,8 @@ public void UpdateState(PdaUpdateState state)
var stationTime = _gameTiming.CurTime.Subtract(_gameTicker.RoundStartTimeSpan);

StationTimeLabel.SetMarkup(Loc.GetString("comp-pda-ui-station-time",
("time", stationTime.ToString("hh\\:mm\\:ss"))));
("time", stationTime.ToString("hh\\:mm\\:ss")),
("date", DateTime.UtcNow.AddYears(1000).ToString("dd.MM.yyyy"))));

// Sunrise-start
var remaining = TimeSpan.Zero;
Expand Down Expand Up @@ -377,7 +378,8 @@ protected override void Draw(DrawingHandleScreen handle)
var stationTime = _gameTiming.CurTime.Subtract(_gameTicker.RoundStartTimeSpan);

StationTimeLabel.SetMarkup(Loc.GetString("comp-pda-ui-station-time",
("time", stationTime.ToString("hh\\:mm\\:ss"))));
("time", stationTime.ToString("hh\\:mm\\:ss")),
("date", DateTime.UtcNow.AddYears(1000).ToString("dd.MM.yyyy"))));

// Sunrise-start
var remaining = TimeSpan.Zero;
Expand Down
2 changes: 1 addition & 1 deletion Resources/Locale/en-US/pda/pda-component.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ comp-pda-ui-station-alert-level = Alert Level: [color={ $color }]{ $level }[/col
comp-pda-ui-station-alert-level-instructions = Instructions: [color=white]{ $instructions }[/color]
comp-pda-ui-station-time = Shift duration: [color=white]{ $time }[/color]
comp-pda-ui-station-time = The current time since the start of the shift: [color=white]{ $time } { $date }[/color]
comp-pda-ui-eject-id-button = Eject ID
Expand Down
2 changes: 1 addition & 1 deletion Resources/Locale/ru-RU/pda/pda-component.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -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]
comp-pda-ui-eject-id-button = Извлечь ID
comp-pda-ui-eject-pen-button = Извлечь ручку
comp-pda-ui-ringtone-button-description = Измените рингтон вашего КПК
Expand Down

0 comments on commit 5ee5426

Please sign in to comment.