I was working on our Intranet people list, trying to put in the official birthdays of people (as opposed to their real birthdays — which is a topic in itself.)
I was a bit shocked to see my birthday as 22 Nov. (It’s 23 Nov).
It was definitely entered correctly on the HRMS.
After a bit of digging around, I realized the problem. I’m in New Jersey. And the the code I was using to detect was moment(date)— which takes a timestamp and converts it to the date in the current time zone. At the time I was born, it was 22 Nov in New Jersey, but 23 Nov in India.
The correct thing to do is to use moment.utc(date) to parse the date. That’ll convert it to the time in GMT, which is how timestamps are supposed to be used.
But I’d never have spotted it if I wasn’t in the US.
That leads me to think… How much more stuff could we learn — if only someone different from us were looking at our work? For example:
Unless we put ourselves in others’ shoes, we can’t really see the flaws in ourselves or our work.
Industry 4.0 solutions originally had their genesis in manufacturing. “The Fourth Industrial Revolution, Industry 4.0,… Read More
Improvement in production performance can enhance supply chain efficacy. There is a continuous discourse around… Read More
Sshhhhhh, ChatGPT knows everything!! In 2023, Generative AI (GenAI) emerged as a major technology disruption… Read More
Generative AI holds immense promise for healthcare, leveraging large datasets to innovate medical imaging, treatment… Read More
NJBIZ has recognized Naveen Gattu, Founder and Chief Operating Officer of Gramener—A Straive Company, as… Read More
This website uses cookies.
Leave a Comment