Skip to content

Commit

Permalink
Merge pull request #146 from jwallet/jwallet
Browse files Browse the repository at this point in the history
1.1.1.1 time zone fix
  • Loading branch information
NHLGames committed Jan 3, 2018
2 parents 9529415 + 85f10cc commit c5de520
Show file tree
Hide file tree
Showing 17 changed files with 287 additions and 4 deletions.
8 changes: 8 additions & 0 deletions NHLGames/Controls/CalendarControl.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions NHLGames/Controls/CalendarControl.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="tt.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
4 changes: 4 additions & 0 deletions NHLGames/Controls/CalendarControl.vb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Namespace Controls
Public Sub ReloadCal(ByVal ldate As Date, ByVal selected As Integer)
_currentDate = ldate
lnkToday.Text = NHLGamesMetro.RmText.GetString("lnkCalendarToday")
tt.SetToolTip(btnBeforeMonth, NHLGamesMetro.RmText.GetString("tipMonthLeft"))
tt.SetToolTip(_btnBeforeYear, NHLGamesMetro.RmText.GetString("tipYearUp"))
tt.SetToolTip(btnNextMonth, NHLGamesMetro.RmText.GetString("tipMonthRight"))
tt.SetToolTip(btnNextYear, NHLGamesMetro.RmText.GetString("tipYearDown"))
Clearall()
lblDate.Text = CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(ldate.Month) & $" " & ldate.Year.ToString
Sun.Text = DateHelper.GetFormattedWeek(0)
Expand Down
1 change: 1 addition & 0 deletions NHLGames/Controls/GameControl.vb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Namespace Controls

If _game.IsLive Then
picLive.Visible = True
tt.SetToolTip(picLive, NHLGamesMetro.RmText.GetString("tipLiveGame"))
lblGameStatus.Visible = Not showLiveScores
lblHomeScore.Visible = showLiveScores
lblAwayScore.Visible = showLiveScores
Expand Down
90 changes: 90 additions & 0 deletions NHLGames/English.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions NHLGames/English.resx
Original file line number Diff line number Diff line change
Expand Up @@ -785,4 +785,44 @@
<value>NHLGames server not avaible!</value>
<comment>Message</comment>
</data>
<data name="tipCalendar" xml:space="preserve">
<value>Calendar</value>
<comment>Games tab</comment>
</data>
<data name="tipRefresh" xml:space="preserve">
<value>Refresh</value>
<comment>Games tab</comment>
</data>
<data name="tipDayRight" xml:space="preserve">
<value>Day after</value>
<comment>Games tab</comment>
</data>
<data name="tipDayLeft" xml:space="preserve">
<value>Day before</value>
<comment>Games tab</comment>
</data>
<data name="tipMonthLeft" xml:space="preserve">
<value>Month before</value>
<comment>Calendar</comment>
</data>
<data name="tipMonthRight" xml:space="preserve">
<value>Month after</value>
<comment>Calendar</comment>
</data>
<data name="tipYearDown" xml:space="preserve">
<value>Year before</value>
<comment>Calendar</comment>
</data>
<data name="tipYearUp" xml:space="preserve">
<value>Year after</value>
<comment>Calendar</comment>
</data>
<data name="tipHelp" xml:space="preserve">
<value>Documentation</value>
<comment>Main</comment>
</data>
<data name="tipLiveGame" xml:space="preserve">
<value>Live</value>
<comment>Game panel</comment>
</data>
</root>
40 changes: 40 additions & 0 deletions NHLGames/French.resx
Original file line number Diff line number Diff line change
Expand Up @@ -573,4 +573,44 @@
<value>NHLGames serveur non disponible!</value>
<comment>Message</comment>
</data>
<data name="tipCalendar" xml:space="preserve">
<value>Calendrier</value>
<comment>Games tab</comment>
</data>
<data name="tipRefresh" xml:space="preserve">
<value>Rafraîchir</value>
<comment>Games tab</comment>
</data>
<data name="tipDayRight" xml:space="preserve">
<value>Jour suivant</value>
<comment>Games tab</comment>
</data>
<data name="tipDayLeft" xml:space="preserve">
<value>Jour précédent</value>
<comment>Games tab</comment>
</data>
<data name="tipHelp" xml:space="preserve">
<value>Documentation</value>
<comment>Main</comment>
</data>
<data name="tipMonthLeft" xml:space="preserve">
<value>Mois précédent</value>
<comment>Calendar</comment>
</data>
<data name="tipMonthRight" xml:space="preserve">
<value>Mois suivant</value>
<comment>Calendar</comment>
</data>
<data name="tipYearDown" xml:space="preserve">
<value>Année précédente</value>
<comment>Calendar</comment>
</data>
<data name="tipYearUp" xml:space="preserve">
<value>Année suivante</value>
<comment>Calendar</comment>
</data>
<data name="tipLiveGame" xml:space="preserve">
<value>En direct</value>
<comment>Game panel</comment>
</data>
</root>
90 changes: 90 additions & 0 deletions NHLGames/French1.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion NHLGames/NHLGamesMetro.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion NHLGames/Objects/GameStream.vb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Namespace Objects
PlayBackId = stream.Property("mediaPlaybackId").Value.ToString()
Me.Type = type
CdnParameter = ApplicationSettings.Read(Of GameWatchArguments)(SettingsEnum.DefaultWatchArgs, New GameWatchArguments).Cdn
GameUrl = String.Format("http://{0}/m3u8/{1}/{2}", NHLGamesMetro.HostName, Game.GameDate.ToLocalTime().ToString("yyyy-MM-dd"), PlayBackId)
GameUrl = String.Format("http://{0}/m3u8/{1}/{2}", NHLGamesMetro.HostName, DateHelper.GetPacificTime(Game.GameDate).ToString("yyyy-MM-dd"), PlayBackId)
Title = $"{Game.AwayAbbrev} vs {Game.HomeAbbrev} on {Network}"
End Sub

Expand Down
Loading

0 comments on commit c5de520

Please sign in to comment.