Skip to content

Commit 784c25a

Browse files
authored
Merge pull request #985 from amitamrutiya/timezond
fix: remove timezone from full formatted time function
2 parents d205979 + b24619c commit 784c25a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/time.utils.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ export const getRelativeTime = (date: string): string => {
66
};
77

88
export const getFullFormattedTime = (date: string): string => {
9-
const timezone = moment.tz.guess();
10-
return moment(date).tz(timezone).format('ddd, MMM D, YYYY h:mm A, z');
9+
return moment(date).format('ddd, MMM D, YYYY h:mm A');
1110
};
1211

1312
export const getFormatDate = (date: string) => {

0 commit comments

Comments
 (0)