7 lines
122 B
TypeScript
7 lines
122 B
TypeScript
|
export function getLocalTime():Date
|
||
|
{
|
||
|
const now = new Date();
|
||
|
now.setHours(now.getHours() + 8);
|
||
|
return now;
|
||
|
}
|