@@ -28,34 +28,34 @@ public ITimeSpanLabel ToTimeSpanLabel(DateTimeOffset offset, GroupByDateUnit uni
28
28
return 0 switch
29
29
{
30
30
_ when now . Date < time . Date
31
- => new Label ( "Future" . GetLocalizedResource ( ) , "\uED28 " , 1000006 ) ,
31
+ => new Label ( "Future" . GetLocalizedResource ( ) , "\uED28 " , 1000000006 ) ,
32
32
_ when now . Date == time . Date
33
- => new Label ( "Today" . GetLocalizedResource ( ) , "\uE8D1 " , 1000005 ) ,
33
+ => new Label ( "Today" . GetLocalizedResource ( ) , "\uE8D1 " , 1000000005 ) ,
34
34
_ when now . AddDays ( - 1 ) . Date == time . Date
35
- => new Label ( "Yesterday" . GetLocalizedResource ( ) , "\uE8BF " , 1000004 ) ,
35
+ => new Label ( "Yesterday" . GetLocalizedResource ( ) , "\uE8BF " , 1000000004 ) ,
36
36
37
37
// Group by day
38
38
_ when unit == GroupByDateUnit . Day
39
- => new Label ( ToString ( time , "D" ) , "\uE8BF " , time . Year * 100 + time . Month * 10 + time . Day ) ,
39
+ => new Label ( ToString ( time , "D" ) , "\uE8BF " , time . Year * 10000 + time . Month * 100 + time . Day ) ,
40
40
41
41
_ when diff . Days <= 7 && GetWeekOfYear ( now ) == GetWeekOfYear ( time )
42
- => new Label ( "EarlierThisWeek" . GetLocalizedResource ( ) , "\uE8C0 " , 1000003 ) ,
42
+ => new Label ( "EarlierThisWeek" . GetLocalizedResource ( ) , "\uE8C0 " , 1000000003 ) ,
43
43
_ when diff . Days <= 14 && GetWeekOfYear ( now . AddDays ( - 7 ) ) == GetWeekOfYear ( time )
44
- => new Label ( "LastWeek" . GetLocalizedResource ( ) , "\uE8C0 " , 1000002 ) ,
44
+ => new Label ( "LastWeek" . GetLocalizedResource ( ) , "\uE8C0 " , 1000000002 ) ,
45
45
_ when now . Year == time . Year && now . Month == time . Month
46
- => new Label ( "EarlierThisMonth" . GetLocalizedResource ( ) , "\uE787 " , 1000001 ) ,
46
+ => new Label ( "EarlierThisMonth" . GetLocalizedResource ( ) , "\uE787 " , 1000000001 ) ,
47
47
_ when now . AddMonths ( - 1 ) . Year == time . Year && now . AddMonths ( - 1 ) . Month == time . Month
48
- => new Label ( "LastMonth" . GetLocalizedResource ( ) , "\uE787 " , 1000000 ) ,
48
+ => new Label ( "LastMonth" . GetLocalizedResource ( ) , "\uE787 " , 1000000000 ) ,
49
49
50
50
// Group by month
51
51
_ when unit == GroupByDateUnit . Month
52
- => new Label ( ToString ( time , "Y" ) , "\uE787 " , time . Year * 100 + time . Month ) ,
52
+ => new Label ( ToString ( time , "Y" ) , "\uE787 " , time . Year * 10000 + time . Month * 100 ) ,
53
53
54
54
// Group by year
55
55
_ when now . Year == time . Year
56
- => new Label ( "EarlierThisYear" . GetLocalizedResource ( ) , "\uEC92 " , 10001 ) ,
56
+ => new Label ( "EarlierThisYear" . GetLocalizedResource ( ) , "\uEC92 " , 10000001 ) ,
57
57
_ when now . AddYears ( - 1 ) . Year == time . Year
58
- => new Label ( "LastYear" . GetLocalizedResource ( ) , "\uEC92 " , 10000 ) ,
58
+ => new Label ( "LastYear" . GetLocalizedResource ( ) , "\uEC92 " , 10000000 ) ,
59
59
_
60
60
=> new Label ( string . Format ( "YearN" . GetLocalizedResource ( ) , time . Year ) , "\uEC92 " , time . Year ) ,
61
61
} ;
0 commit comments