mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
BUG-1850: minimizing the impact of SF down
This commit is contained in:
parent
3ccc1c0f9f
commit
c2b0bb98b4
2 changed files with 24 additions and 20 deletions
|
@ -104,8 +104,14 @@ namespace GreenshotPlugin.Core {
|
|||
/// </summary>
|
||||
/// <param name="updateTime">DateTime</param>
|
||||
/// <returns>true if the feed is newer</returns>
|
||||
public static bool isRSSModifiedAfter(DateTime updateTime) {
|
||||
public static bool IsRSSModifiedAfter(DateTime updateTime) {
|
||||
DateTime lastModified = NetworkHelper.GetLastModified(new Uri(RSSFEED));
|
||||
if (lastModified == DateTime.MinValue)
|
||||
{
|
||||
// Time could not be read, just take now and add one hour to it.
|
||||
// This assist BUG-1850
|
||||
lastModified = DateTime.Now.AddHours(1);
|
||||
}
|
||||
return updateTime.CompareTo(lastModified) < 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue