1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05:00

table storage event repo stub

This commit is contained in:
Kyle Spearrin
2017-11-28 22:21:47 -05:00
parent 8a81241f13
commit 341ef0a943
3 changed files with 182 additions and 0 deletions

View File

@ -409,5 +409,15 @@ namespace Bit.Core.Utilities
.Replace("http://", string.Empty)
.Replace("https://", string.Empty);
}
public static string DateTimeToTableStorageKey(DateTime? date = null)
{
if(date == null)
{
date = DateTime.UtcNow;
}
return date.Value.ToString("yyyy-MM-dd HH:mm:ss.fff");
}
}
}