Skip to content

Commit 2b9ee40

Browse files
committed
Use localtime rather than gmtime
1 parent ece83e9 commit 2b9ee40

16 files changed

+16
-16
lines changed

tools/git/scripts/additions_per_day

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ END {
3434
print ts OFS lines[ts]
3535
}
3636
}
37-
' | sort -n | perl -pe 's/(\d+)/gmtime($1)/e' | awk '{print $2 OFS $3 OFS $5 OFS $6}'
37+
' | sort -n | perl -pe 's/(\d+)/localtime($1)/e' | awk '{print $2 OFS $3 OFS $5 OFS $6}'

tools/git/scripts/additions_per_month

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ shortstats="${root}/tools/git/scripts/shortstats"
1818
# - Tabulate the monthly totals.
1919
# * `sort -M`
2020
# - Sort by month name.
21-
"${shortstats}" | awk '{print $1 OFS $5}' | perl -pe 's/(\d+)/gmtime($1)/e' | awk '
21+
"${shortstats}" | awk '{print $1 OFS $5}' | perl -pe 's/(\d+)/localtime($1)/e' | awk '
2222
{
2323
lines[$2] += $6
2424
}

tools/git/scripts/additions_per_weekday

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ shortstats="${root}/tools/git/scripts/shortstats"
1616
# - Convert each Unix timestamp to a date string.
1717
# * `awk '{}'`
1818
# - Tabulate the weekday totals.
19-
"${shortstats}" | awk '{print $1 OFS $5}' | perl -pe 's/(\d+)/gmtime($1)/e' | awk '
19+
"${shortstats}" | awk '{print $1 OFS $5}' | perl -pe 's/(\d+)/localtime($1)/e' | awk '
2020
BEGIN {
2121
split("Mon Tue Wed Thu Fri Sat Sun", days);
2222
}

tools/git/scripts/author_additions_per_day

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ END {
3535
print keys[1] OFS keys[2] OFS keys[3] OFS lines[k]
3636
}
3737
}
38-
' | sort -n | perl -pe 's/(\d+)/gmtime($1)/e' | awk '{print $2 OFS $3 OFS $5 OFS $6 OFS $7 OFS $8}'
38+
' | sort -n | perl -pe 's/(\d+)/localtime($1)/e' | awk '{print $2 OFS $3 OFS $5 OFS $6 OFS $7 OFS $8}'

tools/git/scripts/author_commits_per_day

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ END {
3535
print keys[1] OFS keys[2] OFS keys[3] OFS lines[k]
3636
}
3737
}
38-
' | sort -n | perl -pe 's/(\d+)/gmtime($1)/e' | awk '{print $2 OFS $3 OFS $5 OFS $6 OFS $7 OFS $8}'
38+
' | sort -n | perl -pe 's/(\d+)/localtime($1)/e' | awk '{print $2 OFS $3 OFS $5 OFS $6 OFS $7 OFS $8}'

tools/git/scripts/author_deletions_per_day

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ END {
3535
print keys[1] OFS keys[2] OFS keys[3] OFS lines[k]
3636
}
3737
}
38-
' | sort -n | perl -pe 's/(\d+)/gmtime($1)/e' | awk '{print $2 OFS $3 OFS $5 OFS $6 OFS $7 OFS $8}'
38+
' | sort -n | perl -pe 's/(\d+)/localtime($1)/e' | awk '{print $2 OFS $3 OFS $5 OFS $6 OFS $7 OFS $8}'

tools/git/scripts/author_files_changed_per_day

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ END {
3535
print keys[1] OFS keys[2] OFS keys[3] OFS lines[k]
3636
}
3737
}
38-
' | sort -n | perl -pe 's/(\d+)/gmtime($1)/e' | awk '{print $2 OFS $3 OFS $5 OFS $6 OFS $7 OFS $8}'
38+
' | sort -n | perl -pe 's/(\d+)/localtime($1)/e' | awk '{print $2 OFS $3 OFS $5 OFS $6 OFS $7 OFS $8}'

tools/git/scripts/deletions_per_day

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ END {
3434
print ts OFS lines[ts]
3535
}
3636
}
37-
' | sort -n | perl -pe 's/(\d+)/gmtime($1)/e' | awk '{print $2 OFS $3 OFS $5 OFS $6}'
37+
' | sort -n | perl -pe 's/(\d+)/localtime($1)/e' | awk '{print $2 OFS $3 OFS $5 OFS $6}'

tools/git/scripts/deletions_per_month

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ shortstats="${root}/tools/git/scripts/shortstats"
1818
# - Tabulate the monthly totals.
1919
# * `sort -M`
2020
# - Sort by month name.
21-
"${shortstats}" | awk '{print $1 OFS $6}' | perl -pe 's/(\d+)/gmtime($1)/e' | awk '
21+
"${shortstats}" | awk '{print $1 OFS $6}' | perl -pe 's/(\d+)/localtime($1)/e' | awk '
2222
{
2323
lines[$2] += $6
2424
}

tools/git/scripts/deletions_per_weekday

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ shortstats="${root}/tools/git/scripts/shortstats"
1616
# - Convert each Unix timestamp to a date string.
1717
# * `awk '{}'`
1818
# - Tabulate the weekday totals.
19-
"${shortstats}" | awk '{print $1 OFS $6}' | perl -pe 's/(\d+)/gmtime($1)/e' | awk '
19+
"${shortstats}" | awk '{print $1 OFS $6}' | perl -pe 's/(\d+)/localtime($1)/e' | awk '
2020
BEGIN {
2121
split("Mon Tue Wed Thu Fri Sat Sun", days);
2222
}

tools/git/scripts/files_changed_per_day

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ END {
3434
print ts OFS lines[ts]
3535
}
3636
}
37-
' | sort -n | perl -pe 's/(\d+)/gmtime($1)/e' | awk '{print $2 OFS $3 OFS $5 OFS $6}'
37+
' | sort -n | perl -pe 's/(\d+)/localtime($1)/e' | awk '{print $2 OFS $3 OFS $5 OFS $6}'

tools/git/scripts/files_changed_per_month

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ shortstats="${root}/tools/git/scripts/shortstats"
1818
# - Tabulate the monthly totals.
1919
# * `sort -M`
2020
# - Sort by month name.
21-
"${shortstats}" | awk '{print $1 OFS $4}' | perl -pe 's/(\d+)/gmtime($1)/e' | awk '
21+
"${shortstats}" | awk '{print $1 OFS $4}' | perl -pe 's/(\d+)/localtime($1)/e' | awk '
2222
{
2323
lines[$2] += $6
2424
}

tools/git/scripts/files_changed_per_weekday

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ shortstats="${root}/tools/git/scripts/shortstats"
1616
# - Convert each Unix timestamp to a date string.
1717
# * `awk '{}'`
1818
# - Tabulate the weekday totals.
19-
"${shortstats}" | awk '{print $1 OFS $4}' | perl -pe 's/(\d+)/gmtime($1)/e' | awk '
19+
"${shortstats}" | awk '{print $1 OFS $4}' | perl -pe 's/(\d+)/localtime($1)/e' | awk '
2020
BEGIN {
2121
split("Mon Tue Wed Thu Fri Sat Sun", days);
2222
}

tools/git/scripts/shortstats_per_day

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ END {
3636
print ts OFS files[ts] OFS additions[ts] OFS deletions[ts]
3737
}
3838
}
39-
' | sort -n | perl -pe 's/(\d+)/gmtime($1)/e' | awk '{print $2 OFS $3 OFS $5 OFS $6 OFS $7 OFS $8}'
39+
' | sort -n | perl -pe 's/(\d+)/localtime($1)/e' | awk '{print $2 OFS $3 OFS $5 OFS $6 OFS $7 OFS $8}'

tools/git/scripts/shortstats_per_month

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ shortstats="${root}/tools/git/scripts/shortstats"
1818
# - Tabulate the monthly totals.
1919
# * `sort -M`
2020
# - Sort by month name.
21-
"${shortstats}" | awk '{print $1 OFS $4 OFS $5 OFS $6}' | perl -pe 's/(\d+)/gmtime($1)/e' | awk '
21+
"${shortstats}" | awk '{print $1 OFS $4 OFS $5 OFS $6}' | perl -pe 's/(\d+)/localtime($1)/e' | awk '
2222
{
2323
files[$2] += $6
2424
additions[$2] += $7

tools/git/scripts/shortstats_per_weekday

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ shortstats="${root}/tools/git/scripts/shortstats"
1616
# - Convert each Unix timestamp to a date string.
1717
# * `awk '{}'`
1818
# - Tabulate the weekday totals.
19-
"${shortstats}" | awk '{print $1 OFS $4 OFS $5 OFS $6}' | perl -pe 's/(\d+)/gmtime($1)/e' | awk '
19+
"${shortstats}" | awk '{print $1 OFS $4 OFS $5 OFS $6}' | perl -pe 's/(\d+)/localtime($1)/e' | awk '
2020
BEGIN {
2121
split("Mon Tue Wed Thu Fri Sat Sun", days);
2222
}

0 commit comments

Comments
 (0)