File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
# DEV BUILD STEP
2
- FROM node:8.5 -alpine as devBuild
2
+ FROM node:8.7 -alpine as devBuild
3
3
WORKDIR /usr/src/app
4
4
5
5
# Copy the source and build
@@ -9,7 +9,7 @@ RUN yarn run build
9
9
10
10
# PROD BUILD STEP
11
11
# Using latest LTS release of Node (comes with Yarn package manager by default)
12
- FROM node:8.5 -alpine
12
+ FROM node:8.7 -alpine
13
13
14
14
# Create an app directory on the container
15
15
WORKDIR /usr/src/app
Original file line number Diff line number Diff line change 1
1
export default ( number ) => {
2
- const date = new Date ( number ) ;
3
- const now = new Date ( ) ;
4
- const timeAgo = now . valueOf ( ) - date . valueOf ( ) ;
2
+ const now = + new Date ( ) ;
3
+ const timeAgo = now - number ;
5
4
6
5
const ONE_YEAR = 3.154e+10 ;
7
6
const ONE_MONTH = 2.628e+9 ;
You can’t perform that action at this time.
0 commit comments