Menu

Bangladesh Time (UTC+6) Order Reports for a Small SMM Reseller, with Node.js
📰

Bangladesh Time (UTC+6) Order Reports for a Small SMM Reseller, with Node.js

DEV Community: node·SEO - NT Tech Innovation·2 days ago
#bCN2b42X
#devtonodejs#devto#dev#const#bangladesh
Reading 0:00
15s threshold

Running a small SMM reseller shop from Bangladesh? Your customers message at night, orders pile up, and in the morning you're trying to remember who ordered what. Here's a tiny Node.js script that builds a daily order summary in Bangladesh time from a CSV log. No database needed.

The log

Keep one CSV line per order, written the moment your supplier returns an order ID:

created_at_utc,order_id,customer,service,qty,charged_bdt,status 2026-11-10T18:42:00Z,90311,Rahim,FB page followers BD,1000,420,completed 2026-11-10T21:05:00Z,90328,Sadia,IG Reel views,10000,150,in_progress 2026-11-11T03:15:00Z,90337,Tanvir,YT likes,500,90,pending

Enter fullscreen mode

Exit fullscreen mode

The script

import { readFileSync } from "node:fs" ;

const BD_OFFSET_MIN = 6 * 60 ; // Bangladesh Standard Time, UTC+6, no DST

const toBdDate = iso => { const d = new Date ( new Date ( iso ) . getTime ( ) + BD_OFFSET_MIN * 60000 ) ; return d . toISOString ( ) .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.