發表文章

目前顯示的是 2月 27, 2019的文章

John Menzies

圖片
For other uses, see John Menzies (disambiguation). John Menzies Type Public Traded as LSE: MNZS Industry Aviation Founded 1833 Headquarters Edinburgh, Scotland, UK Key people Dermot F. Smurfit (Chairman) Giles Wilson (CFO) Forsyth Black (CEO) Services Ground handling Cargo Fuelling Number of employees 36,000 [ citation needed ] Divisions Menzies Aviation Website johnmenziesplc.com John Menzies plc ( / ˈ m ɛ n z iː s / MEN -zeez , traditionally / ˈ m ɪ ŋ ɪ s / MING -iss ) is the holding company of Menzies Aviation , an aviation services business based in Edinburgh, Scotland, providing Ground Handling, Cargo Handling, Cargo Forwarding (AMI) and Fuelling . Contents 1 History 2 Pronunciation 3 See also 4 References 5 External links History The company was founded by John Menzies (1808–1879) of Edinburgh, a Victorian entrepreneur, who built up his small newsagent business (established when he was 25 years old) into a national chain...

Moment JS and convert to local time of user

圖片
0 Thought I understood how to convert a time stored in our DB to the users local time but seems I do not. When I save the kick off time into my postresql database (On Heroku) it is supplied as 2018-11-14 19:45:00 , I save it as a TIMESTAMP. At the time i save it should I use moment? Running Heroku logs I have noticed that the server time is 2018-11-14T19:45:00.200076+00:00 , which is UTC ? Using moment JS in my node app I am carrying out the following fixture.kick_off = 2018-11-14 19:45:00.000000 <%= moment(fixture.kick_off).local().format('HH:mm A') %> I have had a user from Denmark state that this is showing as 19:45 pm, where as i wanted it to show 20:45 PM as per the time difference Have I misunderstood something here (very likely) Thanks Update I am now using the below as per Matt's answer <%= moment.utc(fixture.kick_off).local().format('HH:mm A') %> Following on from Matt's comment around checking the typeof fixture.kick_off, it w...