Skip to content

Commit

Permalink
show server time
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueHorn07 committed Dec 10, 2023
1 parent 0455216 commit fb25178
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app.service.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Injectable } from '@nestjs/common';
import * as moment from 'moment';

@Injectable()
export class AppService {
getHello(): string {
return `Hello POPO! (popo-${process.env.POPO_VERSION})`;
return `Hello POPO! (popo-${process.env.POPO_VERSION}) (now: ${moment().format('YYYY-MM-DD HH:mm:ss')})`;
}
}
3 changes: 2 additions & 1 deletion src/popo/notice/notice.service.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { BadRequestException, Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { LessThan, MoreThanOrEqual, Repository } from 'typeorm';
import * as moment from 'moment';

import { Notice } from './notice.entity';
import { NoticeDto } from './notice.dto';
import * as moment from 'moment';

const Message = {
NOT_EXISTING_REGION: "There's no such region.",
Expand Down

0 comments on commit fb25178

Please sign in to comment.