Skip to content

Commit

Permalink
always use en-US culture, since we always request english page
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudokhvist committed Feb 8, 2020
1 parent 8571f3a commit 193f32a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BoosterCreator/BoosterHandler.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ArchiSteamFarm;
using ArchiSteamFarm;
using ArchiSteamFarm.Localization;
using System;
using System.Collections.Concurrent;
Expand Down Expand Up @@ -114,7 +114,7 @@ internal static async Task<string> CreateBooster(Bot bot, ConcurrentDictionary<u
ASF.ArchiLogger.LogGenericInfo(Commands.FormatBotResponse(bot, "Crafting booster from " + gameID.Key.ToString() + " is not availiable now"));
//Wait until specified time

if (DateTime.TryParseExact(bi.AvailableAtTime, "d MMM @ h:mmtt", CultureInfo.CurrentCulture, DateTimeStyles.None, out DateTime availableAtTime)) {
if (DateTime.TryParseExact(bi.AvailableAtTime, "d MMM @ h:mmtt", new CultureInfo("en-US"), DateTimeStyles.None, out DateTime availableAtTime)) {
/*DateTime convertedTime = TimeZoneInfo.ConvertTime(availableAtTime, ValveTimeZone.GetTimeZoneInfo(), TimeZoneInfo.Local);*/
if (gameID.Value.HasValue) { //if source is timer, not command
gameIDs[gameID.Key] = availableAtTime;//convertedTime;
Expand Down

0 comments on commit 193f32a

Please sign in to comment.